mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-05 00:02:27 -08:00
Add setting to choose an IconPack
This commit is contained in:
1 parent
b6b7e61cfb
commit
15c843fbb9
19 files changed
+260
-71
No files matched your search
@@ -47,6 +47,7 @@ import com.kunzisoft.keepass.database.Database;
|
||||
import com.kunzisoft.keepass.dialogs.StorageAccessFrameworkDialog;
|
||||
import com.kunzisoft.keepass.dialogs.UnavailableFeatureDialogFragment;
|
||||
import com.kunzisoft.keepass.fingerprint.FingerPrintHelper;
|
||||
import com.kunzisoft.keepass.icons.IconPackChooser;
|
||||
import com.kunzisoft.keepass.settings.preferenceDialogFragment.DatabaseDescriptionPreferenceDialogFragmentCompat;
|
||||
import com.kunzisoft.keepass.settings.preferenceDialogFragment.DatabaseNamePreferenceDialogFragmentCompat;
|
||||
import com.kunzisoft.keepass.settings.preferenceDialogFragment.RoundsPreferenceDialogFragmentCompat;
|
||||
@@ -145,6 +146,12 @@ public class NestedSettingsFragment extends PreferenceFragmentCompat
|
||||
return true;
|
||||
});
|
||||
|
||||
Preference iconPackPreference = findPreference(getString(R.string.setting_icon_pack_choose_key));
|
||||
iconPackPreference.setOnPreferenceChangeListener((preference, newValue) -> {
|
||||
IconPackChooser.setSelectedIconPack((String) newValue);
|
||||
return true;
|
||||
});
|
||||
|
||||
SwitchPreference fingerprintEnablePreference =
|
||||
(SwitchPreference) findPreference(getString(R.string.fingerprint_enable_key));
|
||||
// < M solve verifyError exception
|
||||
|
||||
Reference in new issue
Block a user