rename resources folders, new high def icons

This commit is contained in:
Dominik Schürmann 2013-12-30 23:07:18 +01:00
parent f143fc0eb9
commit 5a0ec426ea
2 changed files with 7 additions and 6 deletions

View File

@ -26,6 +26,8 @@ import android.content.Intent;
import android.content.pm.PackageManager; import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo; import android.content.pm.ResolveInfo;
import android.content.pm.ServiceInfo; import android.content.pm.ServiceInfo;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable; import android.graphics.drawable.Drawable;
import android.preference.DialogPreference; import android.preference.DialogPreference;
import android.util.AttributeSet; import android.util.AttributeSet;
@ -96,8 +98,8 @@ public class OpenPgpListPreference extends DialogPreference {
null, null); null, null);
// Add margin between image and text (support various screen densities) // Add margin between image and text (support various screen densities)
int dp5 = (int) (5 * getContext().getResources().getDisplayMetrics().density + 0.5f); int dp10 = (int) (10 * getContext().getResources().getDisplayMetrics().density + 0.5f);
tv.setCompoundDrawablePadding(dp5); tv.setCompoundDrawablePadding(dp10);
// disable if it has the wrong api_version // disable if it has the wrong api_version
if (mProviderList.get(position).apiVersion == OpenPgpConstants.REQUIRED_API_VERSION) { if (mProviderList.get(position).apiVersion == OpenPgpConstants.REQUIRED_API_VERSION) {

View File

@ -95,10 +95,9 @@ public class OpenPgpListPreference extends DialogPreference {
tv.setCompoundDrawablesWithIntrinsicBounds(mProviderList.get(position).icon, null, tv.setCompoundDrawablesWithIntrinsicBounds(mProviderList.get(position).icon, null,
null, null); null, null);
// Add margin between image and text (support various screen // Add margin between image and text (support various screen densities)
// densities) int dp10 = (int) (10 * getContext().getResources().getDisplayMetrics().density + 0.5f);
int dp5 = (int) (5 * getContext().getResources().getDisplayMetrics().density + 0.5f); tv.setCompoundDrawablePadding(dp10);
tv.setCompoundDrawablePadding(dp5);
// disable if it has the wrong api_version // disable if it has the wrong api_version
if (mProviderList.get(position).apiVersion == OpenPgpConstants.REQUIRED_API_VERSION) { if (mProviderList.get(position).apiVersion == OpenPgpConstants.REQUIRED_API_VERSION) {