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

This commit is contained in:
Filip Gruszczynski
2015-01-05 22:46:12 +00:00
committed by Android (Google) Code Review

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();