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

Commit d6331128 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 7041858 from e665e62c to rvc-qpr2-release

Change-Id: I2e50c7186574051eae57e1a4242d37bfe7286de3
parents c572c7e7 e665e62c
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -16,6 +16,8 @@


package android.bluetooth;
package android.bluetooth;


import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;

import android.app.Activity;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.Dialog;
@@ -46,6 +48,8 @@ public abstract class AlertActivity extends Activity implements DialogInterface.
    @Override
    @Override
    protected void onCreate(Bundle savedInstanceState) {
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.onCreate(savedInstanceState);

        getWindow().addPrivateFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        mAlertBuilder = new AlertDialog.Builder(this);
        mAlertBuilder = new AlertDialog.Builder(this);
        mAlertBuilder.setOnDismissListener(this);
        mAlertBuilder.setOnDismissListener(this);
+3 −0
Original line number Original line Diff line number Diff line
@@ -32,6 +32,8 @@


package com.android.bluetooth.opp;
package com.android.bluetooth.opp;


import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;

import android.bluetooth.AlertActivity;
import android.bluetooth.AlertActivity;
import android.content.DialogInterface;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.Intent;
@@ -53,6 +55,7 @@ public class BluetoothOppBtEnableActivity extends AlertActivity
    protected void onCreate(Bundle savedInstanceState) {
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.onCreate(savedInstanceState);


        getWindow().addPrivateFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
        // Set up the "dialog"
        // Set up the "dialog"
        mOppManager = BluetoothOppManager.getInstance(this);
        mOppManager = BluetoothOppManager.getInstance(this);
        mOppManager.mSendingFlag = false;
        mOppManager.mSendingFlag = false;
+3 −0
Original line number Original line Diff line number Diff line
@@ -32,6 +32,8 @@


package com.android.bluetooth.opp;
package com.android.bluetooth.opp;


import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;

import android.bluetooth.AlertActivity;
import android.bluetooth.AlertActivity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothAdapter;
import android.content.BroadcastReceiver;
import android.content.BroadcastReceiver;
@@ -68,6 +70,7 @@ public class BluetoothOppBtEnablingActivity extends AlertActivity {
    protected void onCreate(Bundle savedInstanceState) {
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.onCreate(savedInstanceState);


        getWindow().addPrivateFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
        // If BT is already enabled jus return.
        // If BT is already enabled jus return.
        BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
        BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
        if (adapter.isEnabled()) {
        if (adapter.isEnabled()) {
+3 −0
Original line number Original line Diff line number Diff line
@@ -32,6 +32,8 @@


package com.android.bluetooth.opp;
package com.android.bluetooth.opp;


import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;

import android.bluetooth.AlertActivity;
import android.bluetooth.AlertActivity;
import android.content.DialogInterface;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.Intent;
@@ -51,6 +53,7 @@ public class BluetoothOppBtErrorActivity extends AlertActivity
    protected void onCreate(Bundle savedInstanceState) {
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.onCreate(savedInstanceState);


        getWindow().addPrivateFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
        Intent intent = getIntent();
        Intent intent = getIntent();
        String errorTitle = intent.getStringExtra("title");
        String errorTitle = intent.getStringExtra("title");
        String errorContent = intent.getStringExtra("content");
        String errorContent = intent.getStringExtra("content");
+3 −0
Original line number Original line Diff line number Diff line
@@ -32,6 +32,8 @@


package com.android.bluetooth.opp;
package com.android.bluetooth.opp;


import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;

import android.bluetooth.AlertActivity;
import android.bluetooth.AlertActivity;
import android.content.BroadcastReceiver;
import android.content.BroadcastReceiver;
import android.content.ContentValues;
import android.content.ContentValues;
@@ -93,6 +95,7 @@ public class BluetoothOppIncomingFileConfirmActivity extends AlertActivity
        }
        }
        super.onCreate(savedInstanceState);
        super.onCreate(savedInstanceState);


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