Merge "Do not allow non-system dialogs on UsbConfirmAct" into rvc-qpr-dev am: 2a3a3a1de8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13146867 Change-Id: Ia0f3dcd128b4b53a23fd700aebb81ae7fe46919d
This commit is contained in:
@@ -35,6 +35,8 @@ import android.os.UserHandle;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.CheckBox;
|
||||
import android.widget.CompoundButton;
|
||||
import android.widget.TextView;
|
||||
@@ -58,6 +60,9 @@ public class UsbConfirmActivity extends AlertActivity
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle icicle) {
|
||||
getWindow().addSystemFlags(
|
||||
WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
|
||||
|
||||
super.onCreate(icicle);
|
||||
|
||||
Intent intent = getIntent();
|
||||
|
||||
Reference in New Issue
Block a user