Skip to content
Snippets Groups Projects
Commit fab089da authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Fix restoring debug mode in InputTestBase

Change-Id: I71f01b86c0e8b1e56d39d85795dc0a844cc6285f
parent 04df2bca
No related branches found
No related tags found
No related merge requests found
...@@ -95,7 +95,7 @@ public class InputTestsBase extends ServiceTestCase<LatinIME> { ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment