am 8c6b59f4: Merge "Add system api for disabling touch events in wallpaper behind the window." into lmp-mr1-dev

* commit '8c6b59f46da3e65ce157fe40a08f1c1fbba3e1c2':
  Add system api for disabling touch events in wallpaper behind the window.
This commit is contained in:
Filip Gruszczynski
2015-01-05 22:50:29 +00:00
committed by Android Git Automerger

View File

@@ -18,6 +18,7 @@ package android.view;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
@@ -900,6 +901,14 @@ public abstract class Window {
}
}
/** @hide */
@SystemApi
public void setDisableWallpaperTouchEvents(boolean disable) {
setPrivateFlags(disable
? WindowManager.LayoutParams.PRIVATE_FLAG_DISABLE_WALLPAPER_TOUCH_EVENTS : 0,
WindowManager.LayoutParams.PRIVATE_FLAG_DISABLE_WALLPAPER_TOUCH_EVENTS);
}
/** @hide */
public abstract void alwaysReadCloseOnTouchAttr();