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
Continue upgrading some deprecated methods #883
Conversation
c2a6ce1
to
18066c1
Compare
app/src/common/shared/com/igalia/wolvic/utils/ConnectivityReceiver.java
Outdated
Show resolved
Hide resolved
18066c1
to
94f95c1
Compare
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 job! As mentioned in an inline comment, I think we should remove the first commit from this series and land the rest of them that are ready.
app/src/common/shared/com/igalia/wolvic/utils/ConnectivityReceiver.java
Outdated
Show resolved
Hide resolved
app/src/common/shared/com/igalia/wolvic/utils/ConnectivityReceiver.java
Outdated
Show resolved
Hide resolved
app/src/common/shared/com/igalia/wolvic/utils/ConnectivityReceiver.java
Outdated
Show resolved
Hide resolved
Since our min API is 24 currently Signed-off-by: Songlin Jiang <sjiang@igalia.com>
This is deprecated in API level 30. https://developer.android.com/reference/android/view/View.OnSystemUiVisibilityChangeListener Solution referred to flutter/engine#30931 Signed-off-by: Songlin Jiang <sjiang@igalia.com>
Have FragmentHostCallback implement androidx.core.content.OnConfigurationChangedProvider to automatically dispatch configuration changes to fragments Resolves #822 Signed-off-by: Songlin Jiang <sjiang@igalia.com>
AsyncTask class was deprecated in API level 30. Use the standard java.util.concurrent to replace it. Resolves #801 Signed-off-by: Songlin Jiang <sjiang@igalia.com>
WifiInfo.getConnectionInfo() was deprecated in API level 31. Starting with Build.VERSION_CODES#S, WifiInfo retrieval is moved to ConnectivityManager API surface. WifiInfo is attached in NetworkCapabilities#getTransportInfo() which is available via callback in NetworkCallback#onCapabilitiesChanged(Network, NetworkCapabilities) or on-demand from ConnectivityManager#getNetworkCapabilities(Network). Refer to https://stackoverflow.com/a/73504558 Resolves #802 Signed-off-by: Songlin Jiang <sjiang@igalia.com>
94f95c1
to
96cccde
Compare
I have moved the original first commit into a separate PR: #906 That commit should be correct, as I have tested it. Wolvic can correctly tell the user that the network has disconnected or reconnected with that change. |
Resolves #822
Resolves #801
Resolves #802