packages/apps/Settings
リビジョン | 4f7edf692f4e8a10521379aaae8c1d52ab275d72 (tree) |
---|---|
日時 | 2020-11-19 21:47:53 |
作者 | Jakub Pawlowski <jpawlowski@goog...> |
コミッター | Jakub Pawlowski |
Prevent overlay drawing on top of Bluetooth activity dialog
Bug: 168504491
Change-Id: I04ebe580db2b299af2bd5e44e0b0f20bd42f8535
@@ -34,6 +34,8 @@ import com.android.internal.app.AlertActivity; | ||
34 | 34 | import com.android.internal.app.AlertController; |
35 | 35 | import com.android.settings.R; |
36 | 36 | |
37 | +import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS; | |
38 | + | |
37 | 39 | /** |
38 | 40 | * BluetoothPermissionActivity shows a dialog for accepting incoming |
39 | 41 | * profile connection request from untrusted devices. |
@@ -76,6 +78,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements | ||
76 | 78 | protected void onCreate(Bundle savedInstanceState) { |
77 | 79 | super.onCreate(savedInstanceState); |
78 | 80 | |
81 | + getWindow().addPrivateFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); | |
79 | 82 | Intent i = getIntent(); |
80 | 83 | String action = i.getAction(); |
81 | 84 | if (!action.equals(BluetoothDevice.ACTION_CONNECTION_ACCESS_REQUEST)) { |