Fix isResearcherPackage
Change-Id: I286450fe89a37d75cb398f17d300ddc6f5857ffd
This commit is contained in:
parent
2edd109f84
commit
4af5e3c5f4
2 changed files with 2 additions and 3 deletions
java/src/com/android/inputmethod/latin
|
@ -79,7 +79,7 @@ public class LatinImeLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||||
public static void onPrintAllUsabilityStudyLogs() {
|
public static void onPrintAllUsabilityStudyLogs() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isResearcherPackage() {
|
public static boolean isResearcherPackage(Context context) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -237,8 +237,7 @@ public class Settings extends InputMethodSettingsActivity
|
||||||
textCorrectionGroup.removePreference(dictionaryLink);
|
textCorrectionGroup.removePreference(dictionaryLink);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Following isResearcherPackage can be wrong until LatinImeLogger gets initialized.
|
final boolean isResearcherPackage = LatinImeLogger.isResearcherPackage(this);
|
||||||
final boolean isResearcherPackage = LatinImeLogger.isResearcherPackage();
|
|
||||||
final boolean showUsabilityStudyModeOption =
|
final boolean showUsabilityStudyModeOption =
|
||||||
res.getBoolean(R.bool.config_enable_usability_study_mode_option)
|
res.getBoolean(R.bool.config_enable_usability_study_mode_option)
|
||||||
|| isResearcherPackage || ENABLE_EXPERIMENTAL_SETTINGS;
|
|| isResearcherPackage || ENABLE_EXPERIMENTAL_SETTINGS;
|
||||||
|
|
Loading…
Reference in a new issue