mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Simplify disabling permissions request screen
- Move the preference from developer to general settings - Add a "do not ask again" button (with a warning), but only when the permission check is triggered on startup
This commit is contained in:
@@ -20,6 +20,23 @@
|
||||
android:title="@string/pref_title_general_autostartonboot"
|
||||
android:icon="@drawable/ic_autoplay" />
|
||||
|
||||
<SwitchPreferenceCompat
|
||||
android:defaultValue="true"
|
||||
android:icon="@drawable/ic_shield"
|
||||
android:key="permission_pestering"
|
||||
android:layout="@layout/preference_checkbox"
|
||||
android:summary="@string/pref_check_permission_status_summary"
|
||||
android:title="@string/pref_check_permission_status" />
|
||||
|
||||
<Preference
|
||||
android:title="@string/pref_check_permission_show_list"
|
||||
android:key="permission_show_activity"
|
||||
android:icon="@drawable/ic_encrypted_add">
|
||||
<intent
|
||||
android:targetPackage="@string/applicationId"
|
||||
android:targetClass="nodomain.freeyourgadget.gadgetbridge.activities.PermissionsActivity" />
|
||||
</Preference>
|
||||
|
||||
<SwitchPreferenceCompat
|
||||
android:defaultValue="true"
|
||||
android:key="show_changelog"
|
||||
@@ -385,13 +402,6 @@
|
||||
android:summary="@string/pref_crash_notification_summary"
|
||||
android:title="@string/pref_crash_notification_title"
|
||||
app:iconSpaceReserved="false" />
|
||||
<SwitchPreferenceCompat
|
||||
android:defaultValue="true"
|
||||
android:key="permission_pestering"
|
||||
android:layout="@layout/preference_checkbox"
|
||||
android:summary="@string/pref_check_permission_status_summary"
|
||||
android:title="@string/pref_check_permission_status"
|
||||
app:iconSpaceReserved="false" />
|
||||
<SwitchPreferenceCompat
|
||||
android:defaultValue="true"
|
||||
android:key="cache_weather"
|
||||
|
||||
Reference in New Issue
Block a user