Skip to content

Translucent activity issues after using yandex sdk #4

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

Open
sirekanyan opened this issue May 31, 2019 · 4 comments
Open

Translucent activity issues after using yandex sdk #4

sirekanyan opened this issue May 31, 2019 · 4 comments

Comments

@sirekanyan
Copy link

sirekanyan commented May 31, 2019

After we return from Yandex Login SDK screen, there is a possibility that Translucent activities won't work properly. The bug only occurred when using BrowserLoginStrategy. Never happened for NativeLoginStrategy or WebViewLoginStrategy.

I've created a small project where the problem can be reproduced: https://github.com/sirekanyan/sample-yandex-login-sdk-bug

Android version: 9
Device: Google Pixel

I can reproduce it only on Google Pixel devices (tried two different devices). Cannot reproduce on any other device models (tried Google Nexus 6P and couple Samsung devices)

Steps to reproduce:

  1. Install demo project https://github.com/sirekanyan/sample-yandex-login-sdk-bug
  2. Click button "Open browser activity"
  3. Click back button
  4. Click button "Open translucent activity"

Expected: translucent activity opened
Actual: activity opening with animation, but then suddenly disappears

(repeat steps 1-3 if needed, sometimes bug isn't reproduced the first time)

sirekanyan added a commit to sirekanyan/yandex-login-sdk-android that referenced this issue May 31, 2019
sirekanyan added a commit to sirekanyan/yandex-login-sdk-android that referenced this issue May 31, 2019
@HotIceCream
Copy link

I tried to reproduce your case on Emulator with Android 9. Translucent activity opened successfully.

Could you provide a video? Is there something interesting maybe in logcat?

Now I don't understand how independent activities linked.

@sirekanyan
Copy link
Author

sirekanyan commented May 31, 2019

2videos.zip
There are two videos in a zip archive. On the first video I click on first button, on the second video -- on the second button.

I cannot understand how activities linked too.

I even watched with dumpsys the state of Translucent activity and it was RESUMED. But in fact it is not visible on screen (but clicks on it work, as you can see from my video)

@sirekanyan
Copy link
Author

I've added logs to activity callbacks and here is logcat translucent-activity-logs.txt

@sirekanyan
Copy link
Author

I added a new test case in my demo app. Now the bug can be reproduced on emulator:
Pixel API 28 | 1080 × 1920: 420dpi | 28 | Android 9.0 (Google Play) | x86_64 | 9.0 GB

video:
device-2019-06-03-150420.webm.zip

logs:
ya-logs-all.txt
ya-logs-filtered.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants