code cleanup
* removed an unnecessary no-backup property from AndroidManifest * removed some unused code
This commit is contained in:
parent
464321ec3d
commit
62b232c93e
3 changed files with 2 additions and 19 deletions
|
|
@ -1,14 +1,13 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:tools="http://schemas.android.com/tools"
|
<manifest xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:versionCode="494"
|
android:versionCode="504"
|
||||||
android:versionName="30.20"
|
android:versionName="30.30"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/> <!-- allows displaying notifications on Android >= 13 -->
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/> <!-- allows displaying notifications on Android >= 13 -->
|
||||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" tools:ignore="ScopedStorage" /> <!-- allows words exporting on Android < 10 -->
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" tools:ignore="ScopedStorage" /> <!-- allows words exporting on Android < 10 -->
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:allowBackup="false"
|
|
||||||
android:icon="@drawable/ic_launcher"
|
android:icon="@drawable/ic_launcher"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:theme="@style/Theme.AppCompat.DayNight"
|
android:theme="@style/Theme.AppCompat.DayNight"
|
||||||
|
|
|
||||||
|
|
@ -42,20 +42,6 @@ abstract public class ItemDropDown {
|
||||||
item.setEntries(this.values.values().toArray(new CharSequence[0]));
|
item.setEntries(this.values.values().toArray(new CharSequence[0]));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void disable() {
|
|
||||||
if (item != null) {
|
|
||||||
item.setEnabled(false);
|
|
||||||
item.setOnPreferenceChangeListener(null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void enable() {
|
|
||||||
if (item != null) {
|
|
||||||
item.setEnabled(true);
|
|
||||||
enableClickHandler();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public ItemDropDown enableClickHandler() {
|
public ItemDropDown enableClickHandler() {
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
item.setOnPreferenceChangeListener(this::onClick);
|
item.setOnPreferenceChangeListener(this::onClick);
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
package io.github.sspanak.tt9.preferences.screens.keypad;
|
package io.github.sspanak.tt9.preferences.screens.keypad;
|
||||||
|
|
||||||
import android.content.Context;
|
|
||||||
|
|
||||||
import androidx.preference.DropDownPreference;
|
import androidx.preference.DropDownPreference;
|
||||||
|
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue