aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/KeySpinner.java8
-rw-r--r--OpenKeychain/src/main/res/values/styles.xml19
2 files changed, 6 insertions, 21 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/KeySpinner.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/KeySpinner.java
index 17bfbef57..c8eceea50 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/KeySpinner.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/widget/KeySpinner.java
@@ -24,13 +24,13 @@ import android.support.v4.app.FragmentActivity;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.Loader;
import android.support.v4.widget.CursorAdapter;
+import android.support.v7.internal.widget.TintSpinner;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.ImageView;
-import android.widget.Spinner;
import android.widget.SpinnerAdapter;
import android.widget.TextView;
@@ -41,7 +41,11 @@ import org.sufficientlysecure.keychain.provider.KeychainContract;
import org.sufficientlysecure.keychain.ui.util.KeyFormattingUtils;
import org.sufficientlysecure.keychain.util.Log;
-public abstract class KeySpinner extends Spinner implements LoaderManager.LoaderCallbacks<Cursor> {
+/**
+ * Use TintSpinner from AppCompat lib instead of Spinner. Fixes white dropdown icon.
+ * Related: http://stackoverflow.com/a/27713090
+ */
+public abstract class KeySpinner extends TintSpinner implements LoaderManager.LoaderCallbacks<Cursor> {
public interface OnKeyChangedListener {
public void onKeyChanged(long masterKeyId);
}
diff --git a/OpenKeychain/src/main/res/values/styles.xml b/OpenKeychain/src/main/res/values/styles.xml
index 8420e0c13..8d8797bf0 100644
--- a/OpenKeychain/src/main/res/values/styles.xml
+++ b/OpenKeychain/src/main/res/values/styles.xml
@@ -1,24 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <!-- Used in Android < 4 -->
-
- <style name="KeychainThemeOLD" parent="@style/Theme.AppCompat.Light">
- <item name="android:alertDialogStyle">@style/CustomDialogTheme</item>
- </style>
-
- <!-- Ugly fix to make content background of Dialogs on Android < 4 white not black! -->
- <style name="CustomDialogTheme" parent="@android:style/Theme.Dialog">
- <item name="android:fullDark">@drawable/popup_full_bright</item>
- <!--<item name="android:topDark">@android:drawable/popup_full_dark</item>-->
- <item name="android:centerDark">@drawable/popup_center_bright</item>
- <!--<item name="android:bottomDark">@android:drawable/popup_bottom_dark</item>-->
- <!--<item name="fullBright">@android:drawable/popup_full_bright</item>-->
- <!--<item name="topBright">@android:drawable/popup_top_bright</item>-->
- <!--<item name="centerBright">@android:drawable/popup_center_bright</item>-->
- <!--<item name="bottomBright">@android:drawable/popup_bottom_bright</item>-->
- <!--<item name="bottomMedium">@android:drawable/popup_bottom_medium</item>-->
- <!--<item name="centerMedium">@android:drawable/popup_center_medium</item>-->
- </style>
<style name="CardViewHeader">
<item name="android:drawableBottom">@drawable/cardview_header</item>