Replace Banner with App Title Text
Bug: 123719839 Test: switch different payment Change-Id: Ica90394bf5d5d0062403f2a0888c56072fdce7ee
This commit is contained in:
@@ -46,7 +46,6 @@ public class PaymentBackend {
|
||||
public static class PaymentAppInfo {
|
||||
public CharSequence label;
|
||||
CharSequence description;
|
||||
Drawable banner;
|
||||
boolean isDefault;
|
||||
public ComponentName componentName;
|
||||
public ComponentName settingsComponent;
|
||||
@@ -111,7 +110,6 @@ public class PaymentBackend {
|
||||
appInfo.settingsComponent = null;
|
||||
}
|
||||
appInfo.description = service.getDescription();
|
||||
appInfo.banner = service.loadBanner(pm);
|
||||
appInfos.add(appInfo);
|
||||
}
|
||||
mAppInfos = appInfos;
|
||||
@@ -141,19 +139,6 @@ public class PaymentBackend {
|
||||
}
|
||||
}
|
||||
|
||||
Drawable loadDrawableForPackage(String pkgName, int drawableResId) {
|
||||
PackageManager pm = mContext.getPackageManager();
|
||||
try {
|
||||
Resources res = pm.getResourcesForApplication(pkgName);
|
||||
Drawable banner = res.getDrawable(drawableResId);
|
||||
return banner;
|
||||
} catch (Resources.NotFoundException e) {
|
||||
return null;
|
||||
} catch (PackageManager.NameNotFoundException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
boolean isForegroundMode() {
|
||||
try {
|
||||
return Settings.Secure.getInt(mContext.getContentResolver(),
|
||||
@@ -222,4 +207,4 @@ public class PaymentBackend {
|
||||
mHandler.obtainMessage().sendToTarget();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user