custom status bar with swipeDismissLayout will cause wallpaper blink.

23 views
Skip to first unread message

yf...@mobvoi.com

unread,
Apr 20, 2016, 10:00:36 AM4/20/16
to android-platform
HI All:
I'v working on build a custom systemUI on a watch, but there's a UI blink problem.
The easiest way to show this bug: get a android wear watch with android 5, install an application with this code: 
    getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED | WindowManager.LayoutParams.FLAG_FULLSCREEN | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
then adb shell am start YOU_ACTIVITY. When swipe you activity, the wallpaper behind keep blinking.

This is not the only situation I'v met. It seems that as long as there's a status bar window, swipeDismissLayout will cause wallpaper display abnormal. I guess WindowManagerService and PhoneWindowManager may have some conflicted rules.
Reply all
Reply to author
Forward
0 new messages