Code example for Window

Methods: addFlags, clearFlags

0
	 
	public void hide() { 
		setVisibility(GONE);
		if(activity != null) {
			Window win = activity.getWindow();
			win.addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
	        win.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
		} 
		clearLockTasks(); 
		reset(); 
	} 
	 
	private void clearLockTasks() { 
	    if(lockTimer != null) {
            lockTimer.cancel();
            lockTimer.purge();
            lockTimer = null;
        } 
	} 
	 
	public void tearDown() {