mirror of
https://github.com/nextcloud/android.git
synced 2024-11-30 08:25:21 +03:00
launcher: Associated the launcher activity with the launch screen theme. Apply default theme in onCreate().
This commit is contained in:
parent
e0b8da6a4b
commit
ae9cb578fa
2 changed files with 3 additions and 2 deletions
|
@ -80,7 +80,7 @@
|
|||
android:name=".ui.activity.FileDisplayActivity"
|
||||
android:label="@string/app_name"
|
||||
android:configChanges="orientation|screenSize"
|
||||
android:theme="@style/Theme.ownCloud.Toolbar.Drawer">
|
||||
android:theme="@style/Theme.ownCloud.Launcher">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
|
|
|
@ -182,7 +182,8 @@ public class FileDisplayActivity extends HookActivity
|
|||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
Log_OC.v(TAG, "onCreate() start");
|
||||
|
||||
// Set the default theme to replace the launch screen theme.
|
||||
setTheme(R.style.Theme_ownCloud_Toolbar_Drawer);
|
||||
super.onCreate(savedInstanceState); // this calls onAccountChanged() when ownCloud Account
|
||||
// is valid
|
||||
|
||||
|
|
Loading…
Reference in a new issue