am 4af5e3c5: Fix isResearcherPackage
* commit '4af5e3c5f48b886c537f1627cdadbeb197962e55': Fix isResearcherPackagemain
commit
0ddf0808e2
|
@ -79,7 +79,7 @@ public class LatinImeLogger implements SharedPreferences.OnSharedPreferenceChang
|
|||
public static void onPrintAllUsabilityStudyLogs() {
|
||||
}
|
||||
|
||||
public static boolean isResearcherPackage() {
|
||||
public static boolean isResearcherPackage(Context context) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -237,8 +237,7 @@ public class Settings extends InputMethodSettingsActivity
|
|||
textCorrectionGroup.removePreference(dictionaryLink);
|
||||
}
|
||||
|
||||
// TODO: Following isResearcherPackage can be wrong until LatinImeLogger gets initialized.
|
||||
final boolean isResearcherPackage = LatinImeLogger.isResearcherPackage();
|
||||
final boolean isResearcherPackage = LatinImeLogger.isResearcherPackage(this);
|
||||
final boolean showUsabilityStudyModeOption =
|
||||
res.getBoolean(R.bool.config_enable_usability_study_mode_option)
|
||||
|| isResearcherPackage || ENABLE_EXPERIMENTAL_SETTINGS;
|
||||
|
|
Loading…
Reference in New Issue