Prevent NPE in gaming mode settings
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: DennySPB <dennyspb@gmail.com> Change-Id: I64767668de59125a13650fb2483439143f0aabd2 Signed-off-by: DennySPB <dennyspb@gmail.com> Signed-off-by: DennySPb <dennyspb@gmail.com> Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -236,12 +236,12 @@ public class GamingMode extends SettingsPreferenceFragment
|
||||
// Do nothing
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Keep these at the top
|
||||
mAddGamingPref.setOrder(0);
|
||||
// Add 'add' options
|
||||
mGamingPrefList.addPreference(mAddGamingPref);
|
||||
// Keep these at the top
|
||||
mAddGamingPref.setOrder(0);
|
||||
// Add 'add' options
|
||||
mGamingPrefList.addPreference(mAddGamingPref);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user