15c07dcb0698725e7949b030665d21f96c916f3b8Jason Monk/* 25c07dcb0698725e7949b030665d21f96c916f3b8Jason Monk * Copyright (C) 2015 The Android Open Source Project 35c07dcb0698725e7949b030665d21f96c916f3b8Jason Monk * 45c07dcb0698725e7949b030665d21f96c916f3b8Jason Monk * Licensed under the Apache License, Version 2.0 (the "License"); 55c07dcb0698725e7949b030665d21f96c916f3b8Jason Monk * you may not use this file except in compliance with the License. 65c07dcb0698725e7949b030665d21f96c916f3b8Jason Monk * You may obtain a copy of the License at 75c07dcb0698725e7949b030665d21f96c916f3b8Jason Monk * 85c07dcb0698725e7949b030665d21f96c916f3b8Jason Monk * http://www.apache.org/licenses/LICENSE-2.0 95c07dcb0698725e7949b030665d21f96c916f3b8Jason Monk * 105c07dcb0698725e7949b030665d21f96c916f3b8Jason Monk * Unless required by applicable law or agreed to in writing, software 115c07dcb0698725e7949b030665d21f96c916f3b8Jason Monk * distributed under the License is distributed on an "AS IS" BASIS, 125c07dcb0698725e7949b030665d21f96c916f3b8Jason Monk * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 135c07dcb0698725e7949b030665d21f96c916f3b8Jason Monk * See the License for the specific language governing permissions and 145c07dcb0698725e7949b030665d21f96c916f3b8Jason Monk * limitations under the License. 155c07dcb0698725e7949b030665d21f96c916f3b8Jason Monk */ 165c07dcb0698725e7949b030665d21f96c916f3b8Jason Monkpackage com.android.packageinstaller.permission.ui; 175c07dcb0698725e7949b030665d21f96c916f3b8Jason Monk 1863f269a9788a9678bb9eea5fc5c5f38ec78a20b4Phil Weaverimport static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS; 1963f269a9788a9678bb9eea5fc5c5f38ec78a20b4Phil Weaver 205c07dcb0698725e7949b030665d21f96c916f3b8Jason Monkimport android.app.Activity; 2163f269a9788a9678bb9eea5fc5c5f38ec78a20b4Phil Weaverimport android.os.Bundle; 225c07dcb0698725e7949b030665d21f96c916f3b8Jason Monk 235c07dcb0698725e7949b030665d21f96c916f3b8Jason Monkpublic class OverlayTouchActivity extends Activity { 2400b8a26bb6a620c36137f77a46bfa81d3c0657fcSvet Ganov @Override 2563f269a9788a9678bb9eea5fc5c5f38ec78a20b4Phil Weaver protected void onCreate(Bundle savedInstanceState) { 2663f269a9788a9678bb9eea5fc5c5f38ec78a20b4Phil Weaver getWindow().addPrivateFlags(PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); 2763f269a9788a9678bb9eea5fc5c5f38ec78a20b4Phil Weaver super.onCreate(savedInstanceState); 285c07dcb0698725e7949b030665d21f96c916f3b8Jason Monk } 295c07dcb0698725e7949b030665d21f96c916f3b8Jason Monk} 30