Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c02bfda8 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Updater: Allow A/B devices to override update priority

- Changing in mid-shipping will/should not change current value.

Change-Id: I93fc3dd8533aca60811888118d5c99bc39ca32b0
parent d9af5a47
Loading
Loading
Loading
Loading

res/values/config.xml

0 → 100644
+19 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2022 MURENA SAS

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<resources>
    <bool name="config_prioritizeUpdateProcess">false</bool>
</resources>

res/values/symbols.xml

0 → 100644
+19 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2022 MURENA SAS

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<resources>
    <java-symbol type="bool" name="config_prioritizeUpdateProcess" />
</resources>
+2 −1
Original line number Diff line number Diff line
@@ -469,7 +469,8 @@ public class UpdatesActivity extends UpdatesListActivity {
        autoCheckInterval.setSelection(Utils.getUpdateCheckSetting(this));
        autoDelete.setChecked(prefs.getBoolean(Constants.PREF_AUTO_DELETE_UPDATES, true));
        dataWarning.setChecked(prefs.getBoolean(Constants.PREF_MOBILE_DATA_WARNING, true));
        abPerfMode.setChecked(prefs.getBoolean(Constants.PREF_AB_PERF_MODE, false));
        abPerfMode.setChecked(prefs.getBoolean(Constants.PREF_AB_PERF_MODE,
                getResources().getBoolean(R.bool.config_prioritizeUpdateProcess)));

        new AlertDialog.Builder(this)
                .setTitle(R.string.menu_preferences)