Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0669524 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Hide non-system overlay window on AllowBindAppWidgetActivity" into sc-dev

parents 560234a8 55d16478
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.settings;

import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;

import android.appwidget.AppWidgetManager;
import android.content.ComponentName;
import android.content.Context;
@@ -91,6 +93,7 @@ public class AllowBindAppWidgetActivity extends AlertActivity implements
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().addPrivateFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
        setResult(RESULT_CANCELED); // By default, set the result to cancelled
        Intent intent = getIntent();
        CharSequence label = "";