Merge "WidgetTray UI improvement" into ub-launcher3-burnaby
This commit is contained in:
committed by
Android (Google) Code Review
commit
9884fd26d5
@@ -41,7 +41,7 @@
|
||||
android:layout_weight="1"
|
||||
android:gravity="start"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="marquee"
|
||||
android:ellipsize="end"
|
||||
android:fadingEdge="horizontal"
|
||||
|
||||
android:textColor="#FFFFFFFF"
|
||||
|
||||
@@ -52,6 +52,8 @@
|
||||
android:paddingTop="8dp"
|
||||
android:paddingLeft="16dp"
|
||||
android:paddingRight="16dp"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="end"
|
||||
android:gravity="start|center_vertical"
|
||||
android:textColor="@color/widgets_view_section_text_color"
|
||||
android:background="@color/widget_text_panel"
|
||||
|
||||
@@ -120,7 +120,7 @@ public class WidgetCell extends LinearLayout implements OnLayoutChangeListener {
|
||||
Log.d(TAG, String.format("[tag=%s] onDetachedFromWindow", getTagToString()));
|
||||
}
|
||||
super.onDetachedFromWindow();
|
||||
deletePreview(false);
|
||||
deletePreview(true);
|
||||
}
|
||||
|
||||
public void deletePreview(boolean recycleImage) {
|
||||
|
||||
@@ -124,6 +124,7 @@ public class WidgetsListAdapter extends Adapter<WidgetsRowViewHolder> {
|
||||
if (infoOut.usingLowResIcon) {
|
||||
mIconCache.getTitleAndIconForApp(packageName, UserHandleCompat.myUserHandle(),
|
||||
false /* useLowResIcon */, infoOut);
|
||||
mWidgetsModel.setPackageItemInfo(packageName, infoOut);
|
||||
}
|
||||
((TextView) holder.getContent().findViewById(R.id.section)).setText(infoOut.title);
|
||||
ImageView iv = (ImageView) holder.getContent().findViewById(R.id.section_image);
|
||||
|
||||
@@ -133,4 +133,8 @@ public class WidgetsModel {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void setPackageItemInfo(String packageName, PackageItemInfo infoOut) {
|
||||
mPackageItemInfoList.put(packageName, infoOut);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user