OpenDelta: Hide A/B perf mode for now

or forever
This commit is contained in:
Ido Ben-Hur 2020-10-28 21:06:33 +02:00
parent d9252c49b5
commit 6b07ff9560
No known key found for this signature in database
GPG Key ID: 0B827201D8C20BFE
3 changed files with 11 additions and 11 deletions

View File

@ -25,12 +25,12 @@
android:key="secure_mode"
android:persistent="false"
android:title="@string/secure_mode_title" />
<SwitchPreference
<!-- <SwitchPreference
android:defaultValue="true"
android:key="ab_perf_mode"
android:persistent="false"
android:title="@string/ab_perf_mode_title"
android:summary="@string/ab_perf_mode_summary_new" />
android:summary="@string/ab_perf_mode_summary_new" /> -->
<SwitchPreference
android:defaultValue="true"
android:key="file_flash_support"

View File

@ -154,7 +154,7 @@ class ABUpdate {
}
UpdateEngine updateEngine = new UpdateEngine();
updateEngine.setPerformanceMode(enableABPerfMode);
// updateEngine.setPerformanceMode(enableABPerfMode);
updateEngine.bind(mUpdateEngineCallback);
String zipFileUri = "file://" + file.getAbsolutePath();
updateEngine.applyPayload(zipFileUri, offset, 0, headerKeyValuePairs);

View File

@ -65,7 +65,7 @@ public class SettingsFragment extends PreferenceFragment implements
private ListPreference mBatteryLevel;
private SwitchPreference mChargeOnly;
private SwitchPreference mSecureMode;
private SwitchPreference mABPerfMode;
// private SwitchPreference mABPerfMode;
private Config mConfig;
private PreferenceCategory mAutoDownloadCategory;
private ListPreference mSchedulerMode;
@ -99,9 +99,9 @@ public class SettingsFragment extends PreferenceFragment implements
mSecureMode = (SwitchPreference) findPreference(KEY_SECURE_MODE);
mSecureMode.setEnabled(mConfig.getSecureModeEnable());
mSecureMode.setChecked(mConfig.getSecureModeCurrent());
mABPerfMode = (SwitchPreference) findPreference(KEY_AB_PERF_MODE);
mABPerfMode.setChecked(mConfig.getABPerfModeCurrent());
mABPerfMode.setOnPreferenceChangeListener(this);
// mABPerfMode = (SwitchPreference) findPreference(KEY_AB_PERF_MODE);
// mABPerfMode.setChecked(mConfig.getABPerfModeCurrent());
// mABPerfMode.setOnPreferenceChangeListener(this);
mFileFlash = (SwitchPreference) findPreference(SettingsActivity.PREF_FILE_FLASH);
mShowInfo = (SwitchPreference) findPreference(KEY_SHOW_INFO);
mShowInfo.setChecked(mConfig.getShowInfo());
@ -111,7 +111,7 @@ public class SettingsFragment extends PreferenceFragment implements
(PreferenceCategory) findPreference(KEY_CATEGORY_FLASHING);
if (!Config.isABDevice()) {
flashingCategory.removePreference(mABPerfMode);
// flashingCategory.removePreference(mABPerfMode);
flashingCategory.removePreference(mFileFlash);
}
@ -219,9 +219,9 @@ public class SettingsFragment extends PreferenceFragment implements
int idx = mScheduleWeekDay.findIndexOfValue((String) newValue);
mScheduleWeekDay.setSummary(mScheduleWeekDay.getEntries()[idx]);
return true;
} else if (preference.equals(mABPerfMode)) {
mConfig.setABPerfModeCurrent((boolean) newValue);
return true;
// } else if (preference.equals(mABPerfMode)) {
// mConfig.setABPerfModeCurrent((boolean) newValue);
// return true;
} else if (preference.equals(mShowInfo)) {
mConfig.setShowInfo((boolean) newValue);
return true;