mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix restoring debug mode in InputTestBase
Change-Id: I71f01b86c0e8b1e56d39d85795dc0a844cc6285f
This commit is contained in:
parent
04df2bca22
commit
fab089dac5
@ -95,7 +95,7 @@ public class InputTestsBase extends ServiceTestCase<LatinIME> {
|
|||||||
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mLatinIME);
|
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mLatinIME);
|
||||||
final boolean previousDebugSetting = prefs.getBoolean(PREF_DEBUG_MODE, false);
|
final boolean previousDebugSetting = prefs.getBoolean(PREF_DEBUG_MODE, false);
|
||||||
final SharedPreferences.Editor editor = prefs.edit();
|
final SharedPreferences.Editor editor = prefs.edit();
|
||||||
editor.putBoolean(PREF_DEBUG_MODE, true);
|
editor.putBoolean(PREF_DEBUG_MODE, mode);
|
||||||
editor.commit();
|
editor.commit();
|
||||||
return previousDebugSetting;
|
return previousDebugSetting;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user