mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Fix: app crash when trying to edit the url. Fix a problem from android support library v7 (19)
This commit is contained in:
parent
05e2bf041d
commit
d4c14f8b29
1 changed files with 13 additions and 5 deletions
|
@ -206,7 +206,16 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
|||
protected void onCreate(Bundle savedInstanceState) {
|
||||
//Log_OC.wtf(TAG, "onCreate init");
|
||||
super.onCreate(savedInstanceState);
|
||||
getWindow().requestFeature(Window.FEATURE_NO_TITLE);
|
||||
|
||||
// Workaround, for fixing a problem with Android Library Suppor v7 19
|
||||
//getWindow().requestFeature(Window.FEATURE_NO_TITLE);
|
||||
if (getSupportActionBar() != null) {
|
||||
getSupportActionBar().hide();
|
||||
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(false);
|
||||
getSupportActionBar().setDisplayShowHomeEnabled(false);
|
||||
getSupportActionBar().setDisplayShowTitleEnabled(false);
|
||||
}
|
||||
|
||||
mIsFirstAuthAttempt = true;
|
||||
|
||||
|
@ -1898,5 +1907,4 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
|||
mIsFirstAuthAttempt = true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue