diff options
Diffstat (limited to 'packages/DocumentsUI/src/com/android/documentsui/RecentsCreateFragment.java')
-rw-r--r-- | packages/DocumentsUI/src/com/android/documentsui/RecentsCreateFragment.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/DocumentsUI/src/com/android/documentsui/RecentsCreateFragment.java b/packages/DocumentsUI/src/com/android/documentsui/RecentsCreateFragment.java index 26aecc5..e11d7d9 100644 --- a/packages/DocumentsUI/src/com/android/documentsui/RecentsCreateFragment.java +++ b/packages/DocumentsUI/src/com/android/documentsui/RecentsCreateFragment.java @@ -109,8 +109,9 @@ public class RecentsCreateFragment extends Fragment { mAdapter.swapStacks(data); // When launched into empty recents, show drawer - if (mAdapter.isEmpty() && !state.stackTouched) { - ((BaseActivity) context).setRootsDrawerOpen(true); + if (mAdapter.isEmpty() && !state.stackTouched && + context instanceof DocumentsActivity) { + ((DocumentsActivity) context).setRootsDrawerOpen(true); } } |