-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Remove Login Flow v1 #14461
base: master
Are you sure you want to change the base?
Remove Login Flow v1 #14461
Conversation
Signed-off-by: alperozturk <[email protected]>
8d1f415
to
30c42fb
Compare
@@ -253,9 +225,6 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity | |||
private String token; | |||
|
|||
private boolean onlyAdd = false; | |||
@SuppressLint("ResourceAsColor") @ColorInt | |||
private int primaryColor = R.color.primary; |
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.
Unused variable after removing the login flow v1
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/14461.apk |
@@ -1043,24 +895,6 @@ private void onGetServerInfoFinish(RemoteOperationResult result) { | |||
webViewPassword != null && !webViewPassword.isEmpty()) { | |||
checkBasicAuthorization(webViewUser, webViewPassword); | |||
} else { | |||
new Thread(() -> { |
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.
This remote operation is only used for the primaryColor. Since primaryColor is not used, no need for this remote operation.
@@ -421,9 +384,8 @@ public void onNothingSelected(AdapterView<?> parent) { | |||
|
|||
private void deleteCookies() { | |||
try { | |||
CookieSyncManager.createInstance(this); |
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.
No need to use CookieSyncManager. Document
CookieManager.getInstance().removeAllCookies(null); | ||
} catch (AndroidRuntimeException e) { |
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.
On Android 8, if the device has WebView Shell as the default web browser.
CookieManager.getInstance().removeAllCookies(null);
This function will throw the IllegalArgumentException.
Android 8
a8.mp4
Android 15
a15.mp4