Explorar o código

allow to switch off old login method

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky %!s(int64=5) %!d(string=hai) anos
pai
achega
b561f68834

+ 1 - 1
src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java

@@ -402,7 +402,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
         setClient(progressBar);
 
         // show snackbar after 60s to switch back to old login method
-        if (showLegacyLogin) {
+        if (showLegacyLogin && getResources().getBoolean(R.bool.show_old_login)) {
             final String finalBaseURL = baseURL;
             new Handler().postDelayed(() -> DisplayUtils.createSnackbar(mLoginWebView,
                                                                         R.string.fallback_weblogin_text,

+ 1 - 0
src/main/res/values/setup.xml

@@ -111,6 +111,7 @@
     <!-- url for webview login, with the protocol prefix and with full url (normally /index.php/login/flow)
     If set, will replace all other login methods available -->
     <string name="webview_login_url" translatable="false"></string>
+    <bool name="show_old_login">true</bool>
 
     <!-- Files becomes Home -->
     <bool name="use_home">false</bool>