Skip to content

Commit baf80d3

Browse files
committed
Test auth screen
1 parent 375823c commit baf80d3

File tree

2 files changed

+28
-22
lines changed

2 files changed

+28
-22
lines changed

app/src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -338,33 +338,33 @@ protected void onCreate(Bundle savedInstanceState) {
338338
}
339339

340340
/// load user interface
341-
if (webViewLoginMethod) {
342-
accountSetupWebviewBinding = AccountSetupWebviewBinding.inflate(getLayoutInflater());
343-
setContentView(accountSetupWebviewBinding.getRoot());
344-
anonymouslyPostLoginRequest(webloginUrl);
345-
// initWebViewLogin(webloginUrl, false);
346-
initCancelButton();
347-
} else {
341+
// if (webViewLoginMethod) {
342+
// accountSetupWebviewBinding = AccountSetupWebviewBinding.inflate(getLayoutInflater());
343+
// setContentView(accountSetupWebviewBinding.getRoot());
344+
// anonymouslyPostLoginRequest(webloginUrl);
345+
// // initWebViewLogin(webloginUrl, false);
346+
// initCancelButton();
347+
// } else {
348348
accountSetupBinding = AccountSetupBinding.inflate(getLayoutInflater());
349349
setContentView(accountSetupBinding.getRoot());
350350

351351
/// initialize general UI elements
352352
initOverallUi();
353-
354-
/// initialize block to be moved to single Fragment to check server and get info about it
355-
356-
/// initialize block to be moved to single Fragment to retrieve and validate credentials
357-
if (TextUtils.isEmpty(getString(R.string.enforce_servers))) {
358-
initAuthorizationPreFragment(savedInstanceState);
359-
} else {
360-
showEnforcedServers();
361-
}
362-
}
363-
364-
initServerPreFragment(savedInstanceState);
365-
ProcessLifecycleOwner.get().getLifecycle().addObserver(lifecycleEventObserver);
366-
367-
// webViewUtil.checkWebViewVersion();
353+
//
354+
// /// initialize block to be moved to single Fragment to check server and get info about it
355+
//
356+
// /// initialize block to be moved to single Fragment to retrieve and validate credentials
357+
// if (TextUtils.isEmpty(getString(R.string.enforce_servers))) {
358+
// initAuthorizationPreFragment(savedInstanceState);
359+
// } else {
360+
// showEnforcedServers();
361+
// }
362+
// }
363+
//
364+
// initServerPreFragment(savedInstanceState);
365+
// ProcessLifecycleOwner.get().getLifecycle().addObserver(lifecycleEventObserver);
366+
//
367+
// // webViewUtil.checkWebViewVersion();
368368
}
369369

370370
@IonosCustomization

app/src/main/res/layout/account_setup.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
android:orientation="vertical"
2525
android:padding="@dimen/standard_padding">
2626

27+
<TextView
28+
android:layout_width="wrap_content"
29+
android:layout_height="wrap_content"
30+
android:text="TEST"
31+
android:textSize="60dp"
32+
/>
2733
<ImageView
2834
android:id="@+id/thumbnail"
2935
android:layout_width="@dimen/splash_image_size"

0 commit comments

Comments
 (0)