mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Adding support for managed profiles in widget
issue: 16892811 Change-Id: If8c81f2a5a3bc846b02a5d225c5a8f27b1382dab
This commit is contained in:
@@ -30,6 +30,8 @@ import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.android.launcher3.compat.AppWidgetManagerCompat;
|
||||
|
||||
/**
|
||||
* The linear layout used strictly for the widget/wallpaper tab of the customization tray
|
||||
*/
|
||||
@@ -127,7 +129,7 @@ public class PagedViewWidget extends LinearLayout {
|
||||
image.setMaxWidth(maxWidth);
|
||||
}
|
||||
final TextView name = (TextView) findViewById(R.id.widget_name);
|
||||
name.setText(info.label);
|
||||
name.setText(AppWidgetManagerCompat.getInstance(getContext()).loadLabel(info));
|
||||
final TextView dims = (TextView) findViewById(R.id.widget_dims);
|
||||
if (dims != null) {
|
||||
int hSpan = Math.min(cellSpan[0], (int) grid.numColumns);
|
||||
|
||||
Reference in New Issue
Block a user