Merge "Hide non-system overlay window on AllowBindAppWidgetActivity" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c066952437
@@ -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 = "";
|
||||
|
Reference in New Issue
Block a user