mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Rename a member to comply to the member naming policy.
Change-Id: Ie9493f438c6ac371029e52a5d5f6191c7239bf75
This commit is contained in:
parent
f9ec16f9c0
commit
f5cf266ad9
@ -31,8 +31,8 @@ public class DebugSettings extends PreferenceActivity
|
|||||||
private static final String TAG = "DebugSettings";
|
private static final String TAG = "DebugSettings";
|
||||||
private static final String DEBUG_MODE_KEY = "debug_mode";
|
private static final String DEBUG_MODE_KEY = "debug_mode";
|
||||||
|
|
||||||
|
private boolean mServiceNeedsRestart = false;
|
||||||
private CheckBoxPreference mDebugMode;
|
private CheckBoxPreference mDebugMode;
|
||||||
private boolean serviceNeedsRestart = false;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle icicle) {
|
protected void onCreate(Bundle icicle) {
|
||||||
@ -41,7 +41,7 @@ public class DebugSettings extends PreferenceActivity
|
|||||||
SharedPreferences prefs = getPreferenceManager().getSharedPreferences();
|
SharedPreferences prefs = getPreferenceManager().getSharedPreferences();
|
||||||
prefs.registerOnSharedPreferenceChangeListener(this);
|
prefs.registerOnSharedPreferenceChangeListener(this);
|
||||||
|
|
||||||
serviceNeedsRestart = false;
|
mServiceNeedsRestart = false;
|
||||||
mDebugMode = (CheckBoxPreference) findPreference(DEBUG_MODE_KEY);
|
mDebugMode = (CheckBoxPreference) findPreference(DEBUG_MODE_KEY);
|
||||||
updateDebugMode();
|
updateDebugMode();
|
||||||
}
|
}
|
||||||
@ -49,7 +49,7 @@ public class DebugSettings extends PreferenceActivity
|
|||||||
@Override
|
@Override
|
||||||
protected void onStop() {
|
protected void onStop() {
|
||||||
super.onStop();
|
super.onStop();
|
||||||
if (serviceNeedsRestart) Process.killProcess(Process.myPid());
|
if (mServiceNeedsRestart) Process.killProcess(Process.myPid());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -58,7 +58,7 @@ public class DebugSettings extends PreferenceActivity
|
|||||||
if (mDebugMode != null) {
|
if (mDebugMode != null) {
|
||||||
mDebugMode.setChecked(prefs.getBoolean(DEBUG_MODE_KEY, false));
|
mDebugMode.setChecked(prefs.getBoolean(DEBUG_MODE_KEY, false));
|
||||||
updateDebugMode();
|
updateDebugMode();
|
||||||
serviceNeedsRestart = true;
|
mServiceNeedsRestart = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user