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

Commit caa8d7ff authored by Beverly's avatar Beverly Committed by Beverly Tai
Browse files

Do not allow non-system dialogs on UsbConfirmAct

Test: manual
Bug: 173421110
Change-Id: Icc81a8bf4d85969756a002ee7880cc6c81ecd7a1
parent fe2da4e9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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();