Change AppPicker theme from dialog to full screen

AppPicker used in devceloper options, it will show apps list with
package name in a dialog.
But sometimes it will mis-alignment with package name.
So we change theme from dialog to full screen and set widget_frame
visibility to GONE.

Bug: 151150544
Test: manual
Change-Id: I8f04ab7967288801e5e13ecccf037d6ed09ec71c
This commit is contained in:
Edgar Wang
2020-05-05 06:19:14 +08:00
parent 1e0789355e
commit 3c03f0a8a8
3 changed files with 24 additions and 2 deletions

View File

@@ -32,6 +32,7 @@ public class AppViewHolder {
public ImageView appIcon;
public TextView summary;
public TextView disabled;
public View widget;
static public AppViewHolder createOrRecycle(LayoutInflater inflater, View convertView) {
if (convertView == null) {
@@ -45,6 +46,7 @@ public class AppViewHolder {
holder.appIcon = convertView.findViewById(android.R.id.icon);
holder.summary = convertView.findViewById(android.R.id.summary);
holder.disabled = convertView.findViewById(R.id.appendix);
holder.widget = convertView.findViewById(android.R.id.widget_frame);
convertView.setTag(holder);
return holder;
} else {