Merge "Add system api for disabling touch events in wallpaper behind the window." into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8c6b59f46d
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user