-
Notifications
You must be signed in to change notification settings - Fork 185
Android GUI: Dark mode rework + migrate deprecated APIs + major twoPane bugfix #1205
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
base: master
Are you sure you want to change the base?
Conversation
|
Thank you for this proposal, I am fine with it. |
94ef66c to
a454133
Compare
|
I have resolved almost all warnings in Android Studio. Also migrated a few deprecated APIs to newer APIs. Updated the first post accordingly. What remains is usage of deprecated AsyncTask in ReportListActivity. Also should probably migrate the main menu to MenuProvider as well since already using that for the fragment menu. These two likely requires more work since that part of codes looks complex and has high risk of breaking functionality so I did not touch them. |
|
Migrated the deprecated AsyncTask to Kotlin Coroutines as well. Not as difficult as I thought. |
|
May want to review the warnings in .gradle files regarding deprecated 'proguard-android.txt' and some outdated dependencies. I did not touch those as they may break stuff or cause need to increase minSdkVersion. |
9395704 to
e22a27e
Compare
I have fixed/prevented this bug as well as similar bugs from getting triggered.
Migrated to
Decided to leave this as it is since the older API it is not deprecated for use in activities and that part of MediaInfo app is kind of complex. I have updated the first post to reflect the current state of this PR. |
|
@cjee21 thank you for your hard work, I review all your PRs soon. |
Match the English version. `subscription_detail_text` is not supposed to contain format specifiers or `%PRICE%` placeholder. It will not be replaced and will cause build warning.

This PR contains a suggested implementation for reworking the dark mode of the MediaInfo Android app.
Changes:
Reason:
Other changes in this PR not related to dark mode:
@Synchronizedto prevent other instances of concurrent calls such as those triggered by Android.proguard-android-optimize.txtinstead ofproguard-android.txtproguard-android.txtis deprecated and will be removed in future versions-keepclasseswithmembernames...should not be needed since there is already something similar inproguard-android-optimize.txt.These non-dark-mode-related changes (other than the English correction) should not have any visible changes to users of the app.
There are now no more remaining warnings in Android Studio for this app. The only thing remaining is outdated androidx.room and com.android.billingclient. They cannot be updated without bumping minSdkVersion to 23 as their newer versions require that. As of December, devices running Android versions less than SDK 23 accounts for 0.4% according to Google's statistics.