mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-18 16:03:18 +00:00
Finish updating to API 28
Also temporarily disable the preference fix library
This commit is contained in:
parent
2152e2617f
commit
3435a4077e
5 changed files with 36 additions and 25 deletions
|
@ -9,7 +9,6 @@ import android.net.Uri;
|
|||
import android.os.Bundle;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
import androidx.preference.Preference;
|
||||
import com.takisoft.fix.support.v7.preference.PreferenceFragmentCompat;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.Toast;
|
||||
|
@ -23,6 +22,7 @@ import java.util.Map;
|
|||
|
||||
import javax.crypto.Cipher;
|
||||
|
||||
import androidx.preference.PreferenceFragmentCompat;
|
||||
import me.impy.aegis.AegisApplication;
|
||||
import me.impy.aegis.R;
|
||||
import me.impy.aegis.crypto.MasterKey;
|
||||
|
@ -62,7 +62,7 @@ public class PreferencesFragment extends PreferenceFragmentCompat implements Pas
|
|||
private Preference _slotsPreference;
|
||||
|
||||
@Override
|
||||
public void onCreatePreferencesFix(Bundle savedInstanceState, String rootKey) {
|
||||
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
|
||||
addPreferencesFromResource(R.xml.preferences);
|
||||
|
||||
AegisApplication app = (AegisApplication) getActivity().getApplication();
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/>
|
||||
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light"/>
|
||||
|
||||
<style name="AppTheme" parent="PreferenceFixTheme.Light.DarkActionBar">
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<item name="primaryText">@color/primary_text</item>
|
||||
<item name="secondaryText">@color/secondary_text</item>
|
||||
<item name="cardBackground">@color/card_background</item>
|
||||
|
@ -25,7 +25,6 @@
|
|||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
<item name="background">@color/background</item>
|
||||
<item name="preferenceCategory_marginBottom">0dp</item>
|
||||
<item name="bottomSheetDialogTheme">@style/Theme.Design.Light.BottomSheetDialog</item>
|
||||
|
||||
<item name="iconColorPrimary">@color/icon_primary</item>
|
||||
|
@ -50,7 +49,7 @@
|
|||
<item name="android:windowFullscreen">true</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.Dark" parent="@style/PreferenceFixTheme">
|
||||
<style name="AppTheme.Dark" parent="Theme.AppCompat">
|
||||
<item name="primaryText">@color/primary_text_dark</item>
|
||||
<item name="secondaryText">@color/secondary_text_dark</item>
|
||||
<item name="cardBackground">@color/card_background_dark</item>
|
||||
|
@ -59,7 +58,6 @@
|
|||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
<item name="background">@color/background_dark</item>
|
||||
<item name="preferenceCategory_marginBottom">0dp</item>
|
||||
<item name="bottomSheetDialogTheme">@style/Theme.Design.BottomSheetDialog</item>
|
||||
|
||||
<item name="iconColorPrimary">@color/icon_primary_dark</item>
|
||||
|
|
|
@ -1,57 +1,70 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:title="@string/settings">
|
||||
<androidx.preference.PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:title="@string/settings">
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="Appearance">
|
||||
<android.support.v7.preference.SwitchPreferenceCompat
|
||||
android:title="Appearance"
|
||||
app:iconSpaceReserved="false">
|
||||
<androidx.preference.SwitchPreferenceCompat
|
||||
android:defaultValue="false"
|
||||
android:key="pref_dark_mode"
|
||||
android:title="@string/pref_dark_mode_title"
|
||||
android:summary="@string/pref_dark_mode_summary"/>
|
||||
android:summary="@string/pref_dark_mode_summary"
|
||||
app:iconSpaceReserved="false"/>
|
||||
|
||||
<android.support.v7.preference.SwitchPreferenceCompat
|
||||
<androidx.preference.SwitchPreferenceCompat
|
||||
android:defaultValue="false"
|
||||
android:key="pref_account_name"
|
||||
android:title="@string/pref_account_name_title"
|
||||
android:summary="@string/pref_account_name_summary"/>
|
||||
android:summary="@string/pref_account_name_summary"
|
||||
app:iconSpaceReserved="false"/>
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="Security">
|
||||
<android.support.v7.preference.SwitchPreferenceCompat
|
||||
android:title="Security"
|
||||
app:iconSpaceReserved="false">
|
||||
<androidx.preference.SwitchPreferenceCompat
|
||||
android:defaultValue="true"
|
||||
android:key="pref_secure_screen"
|
||||
android:title="@string/pref_secure_screen_title"
|
||||
android:summary="@string/pref_secure_screen_summary"/>
|
||||
android:summary="@string/pref_secure_screen_summary"
|
||||
app:iconSpaceReserved="false"/>
|
||||
<!--<EditTextPreference
|
||||
android:key="pref_timeout"
|
||||
android:title="@string/pref_timeout_title"
|
||||
android:summary="@string/pref_timeout_summary"
|
||||
android:inputType="number"
|
||||
android:defaultValue="30"
|
||||
android:dialogTitle="Set number of seconds of inactivity before Aegis locks the database"/>-->
|
||||
android:dialogTitle="Set number of seconds of inactivity before Aegis locks the database"
|
||||
app:iconSpaceReserved="false"/>-->
|
||||
<me.impy.aegis.ui.preferences.SwitchPreference
|
||||
android:key="pref_encryption"
|
||||
android:title="@string/pref_encryption_title"
|
||||
android:summary="@string/pref_encryption_summary"
|
||||
android:persistent="false"/>
|
||||
android:persistent="false"
|
||||
app:iconSpaceReserved="false"/>
|
||||
<Preference
|
||||
android:key="pref_slots"
|
||||
android:title="@string/pref_slots_title"
|
||||
android:summary="@string/pref_slots_summary"/>
|
||||
android:summary="@string/pref_slots_summary"
|
||||
app:iconSpaceReserved="false"/>
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="Tools">
|
||||
android:title="Tools"
|
||||
app:iconSpaceReserved="false">
|
||||
<Preference
|
||||
android:key="pref_import"
|
||||
android:title="@string/pref_import_title"
|
||||
android:summary="@string/pref_import_summary"/>
|
||||
android:summary="@string/pref_import_summary"
|
||||
app:iconSpaceReserved="false"/>
|
||||
<Preference
|
||||
android:key="pref_export"
|
||||
android:title="@string/pref_export_title"
|
||||
android:summary="@string/pref_export_summary"/>
|
||||
android:summary="@string/pref_export_summary"
|
||||
app:iconSpaceReserved="false"/>
|
||||
</PreferenceCategory>
|
||||
|
||||
</androidx.preference.PreferenceScreen>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue