-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Migrate to AndroidX #2685
Migrate to AndroidX #2685
Conversation
Tested the APK for a couple of days now, no issues on my end. |
Very sorry about that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to merge!
Oh, just noticed that I don't have the permissions to approve pull requests anymore (was inactive for some time), it is good to merge though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Redirion Below is the exception from #2697. I was able to reproduce it. It happens when rotating the screen on a channel page twice. E.g from portrait to landscape and back again. I guess this is what I did when opening the video and rotating the phone to view a video in landscape. However, I tried this with commits before this PR and did produce the crash. Would be good if you can take a look at it. Exception
Crash log
|
It might be easily mitigated with a null check but fixing the root cause which looks like a race condition between destroying and recreating the views. I will have a look tomorrow morning |
I went ahead with the simple fix. There was no obvious root cause and nulling the adapter of the ViewPager to clean it up is the correct thing to do. So I just added the null check inline with the other Fragment classes. |
Third attempt.
This PR supersedes PR #2598 (seems to be no longer maintained).
This was finally possible after PR #2535 was merged.
I took the stable approach for continued usage of the modified FlingBehavior.java from this commit 0d25645
Closes #2641
Debug apk: https://github.com/Redirion/NewPipe/releases/download/v0.17.4/app-debug.apk
Note that I left everything unchanged, the Extractor still has the NullPointerException on getChannelCount.