mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Do not allow add view in DeferredAppWidgetHostView
Also set rounded corners to DeferredAppWidgetHostView Test: manual Fix: 193885118 Change-Id: I663b5b4a50da1f2348be1792923ee73fe8e6a2e8
This commit is contained in:
@@ -25,6 +25,7 @@ import android.text.StaticLayout;
|
||||
import android.text.TextPaint;
|
||||
import android.text.TextUtils;
|
||||
import android.util.TypedValue;
|
||||
import android.view.View;
|
||||
import android.widget.RemoteViews;
|
||||
|
||||
import com.android.launcher3.R;
|
||||
@@ -54,6 +55,11 @@ public class DeferredAppWidgetHostView extends LauncherAppWidgetHostView {
|
||||
// Not allowed
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addView(View child) {
|
||||
// Not allowed
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
||||
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
|
||||
|
||||
Reference in New Issue
Block a user