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

Fixed About page crash issue #2084

Closed
wants to merge 2 commits into from
Closed

Fixed About page crash issue #2084

wants to merge 2 commits into from

Conversation

Sid911
Copy link

@Sid911 Sid911 commented Jan 19, 2020

Fixes #2083

Changes:

  • Removed the simulate Day Night Function : The About section is powered by https://github.com/medyo/android-about-page this package which unfortunately uses App Compat Day Night as a parent style which directly takes the information from system variable to change the theme actively. The function simulateDayNight counters that by forcing the app theme to change back to light. This creates a loop you can see in bottom gif, in android 10 of my testing in avd even shows more frequent crashes.

ezgif com-optimize

Screenshot/s for the changes:
Before :
ezgif com-video-to-gif

Now:
ezgif com-video-to-gif (1)

Checklist: [Please tick following check boxes with [x] if the respective task is completed]

  • I have reformatted code in every file included in this PR [CTRL+ALT+L]
  • My code does not contain any extra lines or extra spaces
  • I have requested reviews from other members

APK for testing: [Compress the app-debug.apk file into a <feature>.rar or <feature>.zip file and upload it here]

aboutPageCrash.zip

@Sid911
Copy link
Author

Sid911 commented Jan 19, 2020

I tired fixing the darktheme but the android-about-page repo's last production build is more than a year old and there is almost no way this can be fixed other than fiddling with the jar files 😅, ( I did find something here medyo/android-about-page#113) ... also the issue was about crash and switching of theme on the fly so I left the dark theme as it is 😇

@Sid911
Copy link
Author

Sid911 commented Jan 19, 2020

I will try to fix that in next pr if possible.. now that I got some leads into how to do it

@Sid911
Copy link
Author

Sid911 commented Jan 19, 2020

I already worked on dark mode system which is much more flexible than all these things and is kind of future proof considering its considered under https://developer.android.com/jetpack/androidx .. and doesn't rely on android support libraries (which will soon be unsupported) #2065 but that doesn't seem to be our priority now 😅 so I left it.

Just mentioning as this is related

@Sid911
Copy link
Author

Sid911 commented Jan 20, 2020

@CloudyPadmal @cweitat please review this 😄

@kumuditha-udayanga
Copy link
Member

LGTM!

@Sid911
Copy link
Author

Sid911 commented Jan 21, 2020

can this be merged?

Copy link

@jayasanka-sack jayasanka-sack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me... 👍

Copy link
Collaborator

@CloudyPadmal CloudyPadmal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR looks ok. One small change and ready to be merged.

app/src/main/java/io/pslab/fragment/AboutUsFragment.java Outdated Show resolved Hide resolved
@Sid911
Copy link
Author

Sid911 commented Jan 22, 2020

@CloudyPadmal Done the changes 😇

@adityastic
Copy link
Collaborator

@CloudyPadmal RTM

@mariobehling
Copy link
Member

@Sid911 Please resolve conflicts.

@CloudyPadmal CloudyPadmal added the Status: Conflicts Merge conflicts blocking reviews and merges label Feb 4, 2020
@Sid911
Copy link
Author

Sid911 commented Feb 4, 2020

@CloudyPadmal @mariobehling Done

Copy link
Contributor

@cweitat cweitat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check travis

@Sid911 Sid911 closed this Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Conflicts Merge conflicts blocking reviews and merges
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: About page keeps Shifting theme which leads to crashes in android 9 and 10
7 participants