Merge "Do not allow non-system dialogs on UsbConfirmAct" into rvc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2a3a3a1de8
@@ -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