diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-12-30 23:07:18 +0100 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-12-30 23:07:18 +0100 |
commit | 5a0ec426ea36d84d3fff21b5c767a3cfae5fde8f (patch) | |
tree | 5419c90d8962af732b4e4d1e6ac2a81b4d04a816 | |
parent | f143fc0eb9371d06be9824251962d8dbea249942 (diff) | |
download | open-keychain-5a0ec426ea36d84d3fff21b5c767a3cfae5fde8f.tar.gz open-keychain-5a0ec426ea36d84d3fff21b5c767a3cfae5fde8f.tar.bz2 open-keychain-5a0ec426ea36d84d3fff21b5c767a3cfae5fde8f.zip |
rename resources folders, new high def icons
-rw-r--r-- | OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpListPreference.java | 6 | ||||
-rw-r--r-- | OpenPGP-Keychain/src/org/openintents/openpgp/OpenPgpListPreference.java | 7 |
2 files changed, 7 insertions, 6 deletions
diff --git a/OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpListPreference.java b/OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpListPreference.java index c2dda2613..c8e709df9 100644 --- a/OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpListPreference.java +++ b/OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpListPreference.java @@ -26,6 +26,8 @@ import android.content.Intent; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.content.pm.ServiceInfo; +import android.graphics.Bitmap; +import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.preference.DialogPreference; import android.util.AttributeSet; @@ -96,8 +98,8 @@ public class OpenPgpListPreference extends DialogPreference { null, null); // Add margin between image and text (support various screen densities) - int dp5 = (int) (5 * getContext().getResources().getDisplayMetrics().density + 0.5f); - tv.setCompoundDrawablePadding(dp5); + int dp10 = (int) (10 * getContext().getResources().getDisplayMetrics().density + 0.5f); + tv.setCompoundDrawablePadding(dp10); // disable if it has the wrong api_version if (mProviderList.get(position).apiVersion == OpenPgpConstants.REQUIRED_API_VERSION) { diff --git a/OpenPGP-Keychain/src/org/openintents/openpgp/OpenPgpListPreference.java b/OpenPGP-Keychain/src/org/openintents/openpgp/OpenPgpListPreference.java index 4fef3f32c..4ddd97485 100644 --- a/OpenPGP-Keychain/src/org/openintents/openpgp/OpenPgpListPreference.java +++ b/OpenPGP-Keychain/src/org/openintents/openpgp/OpenPgpListPreference.java @@ -95,10 +95,9 @@ public class OpenPgpListPreference extends DialogPreference { tv.setCompoundDrawablesWithIntrinsicBounds(mProviderList.get(position).icon, null, null, null); - // Add margin between image and text (support various screen - // densities) - int dp5 = (int) (5 * getContext().getResources().getDisplayMetrics().density + 0.5f); - tv.setCompoundDrawablePadding(dp5); + // Add margin between image and text (support various screen densities) + int dp10 = (int) (10 * getContext().getResources().getDisplayMetrics().density + 0.5f); + tv.setCompoundDrawablePadding(dp10); // disable if it has the wrong api_version if (mProviderList.get(position).apiVersion == OpenPgpConstants.REQUIRED_API_VERSION) { |