Loading AndroidManifest.xml +2 −2 Original line number Diff line number Diff line Loading @@ -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" /> Loading Loading @@ -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> Loading res/drawable/launcher_screen.xml 0 → 100644 +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> res/values/themes.xml +3 −0 Original line number Diff line number Diff line Loading @@ -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"> Loading src/com/android/documentsui/files/FilesActivity.java +1 −0 Original line number Diff line number Diff line Loading @@ -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); Loading src/com/android/documentsui/picker/ActionHandler.java +9 −1 Original line number Diff line number Diff line Loading @@ -132,7 +132,7 @@ class ActionHandler<T extends FragmentActivity & Addons> extends AbstractActionH if (DEBUG) { Log.d(TAG, "Load last accessed stack."); } loadLastAccessedStack(); initLoadLastAccessedStack(); } @Override Loading Loading @@ -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 Loading
AndroidManifest.xml +2 −2 Original line number Diff line number Diff line Loading @@ -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" /> Loading Loading @@ -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> Loading
res/drawable/launcher_screen.xml 0 → 100644 +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>
res/values/themes.xml +3 −0 Original line number Diff line number Diff line Loading @@ -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"> Loading
src/com/android/documentsui/files/FilesActivity.java +1 −0 Original line number Diff line number Diff line Loading @@ -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); Loading
src/com/android/documentsui/picker/ActionHandler.java +9 −1 Original line number Diff line number Diff line Loading @@ -132,7 +132,7 @@ class ActionHandler<T extends FragmentActivity & Addons> extends AbstractActionH if (DEBUG) { Log.d(TAG, "Load last accessed stack."); } loadLastAccessedStack(); initLoadLastAccessedStack(); } @Override Loading Loading @@ -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