SHARE
TWEET

Untitled

a guest Sep 17th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Override
  2.   protected void onCreate(@Nullable Bundle savedInstanceState) {
  3.   Utils.unlimitHeightActivity(this);
  4.  
  5.   getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED
  6.     | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD
  7.     | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON
  8.     | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
  9.  
  10.   super.onCreate(savedInstanceState);
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top