Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d4c2a4f authored by Diksha Gohlyan's avatar Diksha Gohlyan Committed by Automerger Merge Worker
Browse files

Add splash screen for DocsuI am: 306a2b60

Change-Id: Idf2440362400ba6367e965ea3d89c24bbfc0e488
parents f8b0022a 306a2b60
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -51,8 +51,8 @@

        <activity
            android:name=".picker.PickActivity"
            android:theme="@style/DocumentsTheme"
            android:exported="true"
            android:theme="@style/LauncherTheme"
            android:visibleToInstantApps="true">
            <intent-filter android:priority="100">
                <action android:name="android.intent.action.OPEN_DOCUMENT" />
@@ -111,7 +111,7 @@
            android:name=".files.FilesActivity"
            android:documentLaunchMode="intoExisting"
            android:exported="true"
            android:theme="@style/DocumentsTheme">
            android:theme="@style/LauncherTheme">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
+11 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
  <item android:drawable="@android:color/white"/>

  <item
      android:drawable="@drawable/app_icon"
      android:height="150dp"
      android:width="150dp"
      android:gravity="center"/>

</layer-list>
+3 −0
Original line number Diff line number Diff line
@@ -15,6 +15,9 @@
-->

<resources>
    <style name="LauncherTheme" parent="DocumentsTheme">
        <item name="android:windowBackground">@drawable/launcher_screen</item>
    </style>
    <!-- DocumentsTheme is allow customize by run time overlay -->
    <style name="DocumentsTheme" parent="@android:style/Theme.DeviceDefault.DocumentsUI">

+1 −0
Original line number Diff line number Diff line
@@ -88,6 +88,7 @@ public class FilesActivity extends BaseActivity implements AbstractActionHandler

    @Override
    public void onCreate(Bundle icicle) {
        setTheme(R.style.DocumentsTheme);

        MessageBuilder messages = new MessageBuilder(this);
        Features features = Features.create(this);
+9 −1
Original line number Diff line number Diff line
@@ -132,7 +132,7 @@ class ActionHandler<T extends FragmentActivity & Addons> extends AbstractActionH
        if (DEBUG) {
            Log.d(TAG, "Load last accessed stack.");
        }
        loadLastAccessedStack();
        initLoadLastAccessedStack();
    }

    @Override
@@ -168,6 +168,14 @@ class ActionHandler<T extends FragmentActivity & Addons> extends AbstractActionH
        return false;
    }

    private void initLoadLastAccessedStack() {
        if (DEBUG) {
            Log.d(TAG, "Attempting to load last used stack for calling package.");
        }
        // Block UI until stack is fully loaded, else there is an intermediate incomplete UI state.
        onLastAccessedStackLoaded(mLastAccessed.getLastAccessed(mActivity, mProviders, mState));
    }

    private void loadLastAccessedStack() {
        if (DEBUG) {
            Log.d(TAG, "Attempting to load last used stack for calling package.");
Loading