Skip to content

Commit

Permalink
WebViewLoginUrl config moved to debug variant.
Browse files Browse the repository at this point in the history
  • Loading branch information
surinder-tsys committed May 2, 2023
1 parent b2b20ab commit bfc571a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions app/src/debug/res/values/setup.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- webview_login_url should be empty in debug mode to show login url input screen
this will be useful in switching the environments during testing -->
<string name="webview_login_url" translatable="false" />
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
import com.nextcloud.client.onboarding.OnboardingService;
import com.nextcloud.client.preferences.AppPreferences;
import com.nextcloud.java.util.Optional;
import com.owncloud.android.BuildConfig;
import com.owncloud.android.MainApp;
import com.owncloud.android.R;
import com.owncloud.android.databinding.AccountSetupBinding;
Expand Down Expand Up @@ -312,11 +311,6 @@ protected void onCreate(Bundle savedInstanceState) {
if (getIntent().getBooleanExtra(EXTRA_USE_PROVIDER_AS_WEBLOGIN, false)) {
webViewLoginMethod = true;
webloginUrl = getString(R.string.provider_registration_server);
}
//enabling login url input screen in debug mode
//this will be useful in switching the environments during testing
else if (BuildConfig.DEBUG) {
webViewLoginMethod = false;
} else {
webViewLoginMethod = !TextUtils.isEmpty(getResources().getString(R.string.webview_login_url));
showWebViewLoginUrl = getResources().getBoolean(R.bool.show_server_url_input);
Expand Down

0 comments on commit bfc571a

Please sign in to comment.