Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]:全屏时悬浮窗位置抖动问题 #69

Open
Summer-Android opened this issue Aug 29, 2024 · 13 comments
Open

[Bug]:全屏时悬浮窗位置抖动问题 #69

Summer-Android opened this issue Aug 29, 2024 · 13 comments
Labels
bug Something isn't working

Comments

@Summer-Android
Copy link

Framework Version [Required]

10.62

Issue Description [Required]

使用Demo测试
DemoAPP启动后假设现在已有悬浮窗权限,我再MainActivity中直接创建一个全局悬浮窗并且随便滑动一下
然后我在打开一个全屏Activity,这时悬浮窗就会自己从我一开始滑动位置的起点到终点自己移动一次

全屏Activity创建时设置以下属性

getWindow().getDecorView().setSystemUiVisibility(
                View.SYSTEM_UI_FLAG_IMMERSIVE
                        | View.SYSTEM_UI_FLAG_LAYOUT_STABLE
                        | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
                        | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
                        | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
                        | View.SYSTEM_UI_FLAG_FULLSCREEN);

Steps to Reproduce [Required]

1、APP启动MainActivity时创建全局悬浮窗(假设已有权限)
2、滑动下悬浮窗
3、打开一个全屏Activity

Is the Issue Reproducible? [Required]

Yes

Project targetSdkVersion [Required]

33

Device Information [Required]

Google Pixel7、三星 SM-S911U

Android Version [Required]

Android13

Issue Source Channel [Required]

Encountered by myself

Is it specific to certain device models? [Required]

测试了跟设备没关系

Does the latest version of the framework have this issue? [Required]

Yes

Is the issue mentioned in the framework documentation? [Required]

No

Did you consult the framework documentation but couldn't find a solution? [Required]

Yes

Has a similar issue been reported in the issue list? [Required]

No

Have you searched the issue list but couldn't find a solution? [Required]

Yes

Can the issue be reproduced with a demo project? [Required]

Yes

Provide Error Stack Trace

No response

Provide Screenshots or Videos

Screen_recording_20240829_192323.mp4

Provide a Solution

No response

@Summer-Android Summer-Android added the bug Something isn't working label Aug 29, 2024
@Summer-Android
Copy link
Author

三星 SM-S911U测试
1、APP启动MainActivity时创建全局悬浮窗(假设已有权限)
2、打开一个全屏Activity
3、随便滑动下悬浮窗
4、手指左、右滑动返回当前全屏Activity
https://github.com/user-attachments/assets/8a6dfd0a-fd1f-4af2-a869-ce090ef29fe8

@getActivity
Copy link
Owner

提供一个可供 Demo 工程源码到 issue 评论区来

@Summer-Android
Copy link
Author

EasyWindow.zip

@getActivity
Copy link
Owner

screenshot1725380971832.mp4

@getActivity
Copy link
Owner

image

@getActivity
Copy link
Owner

小伙子,根据你提供的复现步骤,我无法在 Android 14 模拟器上面复现。

@Summer-Android
Copy link
Author

小伙子,根据你提供的复现步骤,我无法在 Android 14 模拟器上面复现。

可能每个手机操作顺序不一样
1、你可以先滑动一下然后再进去全屏Activity
2、或者你进入全屏Activity后滑动一下在退出

@getActivity
Copy link
Owner

screenshot1725466924217.mp4

@getActivity
Copy link
Owner

测试了,还是不能复现

@Summer-Android
Copy link
Author

Screen_recording_20240905_104558.webm

我使用模拟器测试时,使用侧滑返回就会出现抖动,而不是使用返回键

@actor20170211030627
Copy link

轮轮哥, 确实有跳动的问题, 我在打电话icon的点击事件跳转系统拍照(没有状态栏), 跳过去后没有状态栏, 点击就会出问题, 会跳动.
测试手机: Honor 7A, Android 8.0.0, 但是其实高版本也有这个问题的.

视频:
https://github.com/user-attachments/assets/e7e830e8-7fb8-4eec-bc04-9dddae1a2dca

代码(在Demo基础上增加了跳转相机的功能, 将.git文件夹拖入下方demo就能看见改动):
EasyWindow.zip

@getActivity
Copy link
Owner

screenshot1730045389466.mp4

@getActivity
Copy link
Owner

轮轮哥, 确实有跳动的问题, 我在打电话icon的点击事件跳转系统拍照(没有状态栏), 跳过去后没有状态栏, 点击就会出问题, 会跳动. 测试手机: Honor 7A, Android 8.0.0, 但是其实高版本也有这个问题的.

视频: https://github.com/user-attachments/assets/e7e830e8-7fb8-4eec-bc04-9dddae1a2dca

代码(在Demo基础上增加了跳转相机的功能, 将.git文件夹拖入下方demo就能看见改动): EasyWindow.zip

我用小米 12 手机(Android 12)测试并没有复现该问题,目前我手头没有你说的那个机型,你先排查一下是什么问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants