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

Commit 858fab16 authored by wescande's avatar wescande
Browse files

Clean hidden api - window.addPrivateFlags

Remove hidden api for mainline project.
This commit is for window.addPrivateFlags

Bug: 190443169
Test: Manual
Tag: #refactor
Change-Id: I996e4c30216cd27d82ce6d54f4e64ba7952d3450
parent ea80be8b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ public abstract class AlertActivity extends Activity implements DialogInterface.
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        getWindow().addPrivateFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
        getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        mAlertBuilder = new AlertDialog.Builder(this);
        mAlertBuilder.setOnDismissListener(this);
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ public class BluetoothOppBtEnableActivity extends AlertActivity {
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        getWindow().addPrivateFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
        getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
        // Set up the "dialog"
        mOppManager = BluetoothOppManager.getInstance(this);
        mOppManager.mSendingFlag = false;
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ public class BluetoothOppBtEnablingActivity extends AlertActivity {
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        getWindow().addPrivateFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
        getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
        // If BT is already enabled jus return.
        BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
        if (adapter.isEnabled()) {
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ public class BluetoothOppBtErrorActivity extends AlertActivity {
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        getWindow().addPrivateFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
        getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
        Intent intent = getIntent();
        String errorTitle = intent.getStringExtra("title");
        String errorContent = intent.getStringExtra("content");
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ public class BluetoothOppIncomingFileConfirmActivity extends AlertActivity {
        }
        super.onCreate(savedInstanceState);

        getWindow().addPrivateFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
        getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
        Intent intent = getIntent();
        mUri = intent.getData();
        mTransInfo = new BluetoothOppTransferInfo();
Loading