1dc69f49d687ec036947f26a9bf9025a305de0721Yigit Boyar/* 2dc69f49d687ec036947f26a9bf9025a305de0721Yigit Boyar * Copyright (C) 2015 The Android Open Source Project 397d6ddf47f4ff1abb3ed5201ce5232163f5325b1Yigit Boyar * 4dc69f49d687ec036947f26a9bf9025a305de0721Yigit Boyar * Licensed under the Apache License, Version 2.0 (the "License"); 5dc69f49d687ec036947f26a9bf9025a305de0721Yigit Boyar * you may not use this file except in compliance with the License. 6dc69f49d687ec036947f26a9bf9025a305de0721Yigit Boyar * You may obtain a copy of the License at 797d6ddf47f4ff1abb3ed5201ce5232163f5325b1Yigit Boyar * 8dc69f49d687ec036947f26a9bf9025a305de0721Yigit Boyar * http://www.apache.org/licenses/LICENSE-2.0 997d6ddf47f4ff1abb3ed5201ce5232163f5325b1Yigit Boyar * 10dc69f49d687ec036947f26a9bf9025a305de0721Yigit Boyar * Unless required by applicable law or agreed to in writing, software 11dc69f49d687ec036947f26a9bf9025a305de0721Yigit Boyar * distributed under the License is distributed on an "AS IS" BASIS, 12dc69f49d687ec036947f26a9bf9025a305de0721Yigit Boyar * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13dc69f49d687ec036947f26a9bf9025a305de0721Yigit Boyar * See the License for the specific language governing permissions and 14dc69f49d687ec036947f26a9bf9025a305de0721Yigit Boyar * limitations under the License. 15dc69f49d687ec036947f26a9bf9025a305de0721Yigit Boyar */ 16dc69f49d687ec036947f26a9bf9025a305de0721Yigit Boyar 17fead9ca09b117136b35bc5bf137340a754f9edddGeorge Mountpackage android.databinding.testapp; 18dc69f49d687ec036947f26a9bf9025a305de0721Yigit Boyar 19dc69f49d687ec036947f26a9bf9025a305de0721Yigit Boyarimport android.app.Activity; 203bd87eef217d80a233677d7e267224d0ed3c2c55Yigit Boyarimport android.os.Bundle; 213bd87eef217d80a233677d7e267224d0ed3c2c55Yigit Boyarimport android.view.WindowManager; 22dc69f49d687ec036947f26a9bf9025a305de0721Yigit Boyar 23dc69f49d687ec036947f26a9bf9025a305de0721Yigit Boyarpublic class TestActivity extends Activity { 24dc69f49d687ec036947f26a9bf9025a305de0721Yigit Boyar 253bd87eef217d80a233677d7e267224d0ed3c2c55Yigit Boyar @Override 263bd87eef217d80a233677d7e267224d0ed3c2c55Yigit Boyar protected void onCreate(Bundle savedInstanceState) { 273bd87eef217d80a233677d7e267224d0ed3c2c55Yigit Boyar super.onCreate(savedInstanceState); 283bd87eef217d80a233677d7e267224d0ed3c2c55Yigit Boyar getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); 293bd87eef217d80a233677d7e267224d0ed3c2c55Yigit Boyar } 30dc69f49d687ec036947f26a9bf9025a305de0721Yigit Boyar} 31