diff options
| author | Jules Aguillon | 2023-08-10 19:13:12 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2023-08-16 12:21:25 +0200 |
| commit | 4584e8289b241595e256b74787d8fbe650bb57cd (patch) | |
| tree | 22ed4ce457592311194a46bb27ffb3003602ef0f | |
| parent | febc23776fcf6c0a198cec442523cd0570999c15 (diff) | |
| download | unexpected-keyboard-4584e8289b241595e256b74787d8fbe650bb57cd.tar.gz unexpected-keyboard-4584e8289b241595e256b74787d8fbe650bb57cd.zip | |
Remove unused class LayoutListPreference
This class is not used since the introduction of [LayoutsPreference].
| -rw-r--r-- | res/values/attrs.xml | 3 | ||||
| -rw-r--r-- | srcs/juloo.keyboard2/LayoutListPreference.java | 25 |
2 files changed, 0 insertions, 28 deletions
diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 693ef89..b012a7c 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -3,7 +3,4 @@ <declare-styleable name="ExtraKeyCheckBoxPreference"> <attr name="index" format="integer"/> </declare-styleable> - <declare-styleable name="LayoutListPreference"> - <attr name="defaultString" format="string"/> - </declare-styleable> </resources> diff --git a/srcs/juloo.keyboard2/LayoutListPreference.java b/srcs/juloo.keyboard2/LayoutListPreference.java deleted file mode 100644 index 9e3072c..0000000 --- a/srcs/juloo.keyboard2/LayoutListPreference.java +++ /dev/null @@ -1,25 +0,0 @@ -package juloo.keyboard2; - -import android.content.Context; -import android.content.res.Resources; -import android.content.res.TypedArray; -import android.preference.ListPreference; -import android.util.AttributeSet; - -public class LayoutListPreference extends ListPreference -{ - public LayoutListPreference(Context context, AttributeSet attrs) - { - super(context, attrs); - final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.LayoutListPreference); - String defaultString = a.getString(R.styleable.LayoutListPreference_defaultString); - a.recycle(); - Resources res = context.getResources(); - String[] entries = res.getStringArray(R.array.pref_layout_entries); - entries[0] = defaultString; - setEntries(entries); - setEntryValues(res.getStringArray(R.array.pref_layout_values)); - setSummary("%s"); - setDefaultValue("none"); - } -} |
