Created
September 18, 2013 06:52
-
-
Save wone/6605432 to your computer and use it in GitHub Desktop.
禁用通知栏disable StatusBar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void onWindowFocusChanged(boolean hasFocus) { | |
super.onWindowFocusChanged(hasFocus); | |
if (hasFocus) return; | |
Intent intent = new Intent("android.intent.action.CLOSE_SYSTEM_DIALOGS"); | |
intent.putExtra("reason", "globalactions"); | |
sendBroadcast(intent); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment