diff options
| author | Xin Li <delphij@google.com> | 2021-10-06 22:53:54 +0000 |
|---|---|---|
| committer | Xin Li <delphij@google.com> | 2021-10-06 22:53:54 +0000 |
| commit | 8c348c41a50cb3fe83e9d2403cc34db5d5ddcb70 (patch) | |
| tree | 2ba30a68b1e5a2246c7e071219139cea61cab0e6 /src/com/android/documentsui/DrawerController.java | |
| parent | 4bc189377da5f3cb27fb439d677cb89f3390a7a6 (diff) | |
| parent | 84af7ecf6ae45a2ab3aba9b0019baa191b430af5 (diff) | |
| download | platform_packages_apps_DocumentsUI-master.tar.gz platform_packages_apps_DocumentsUI-master.tar.bz2 platform_packages_apps_DocumentsUI-master.zip | |
Bug: 202323961
Merged-In: I64e7be8bd815a3f3bf84277ffb9ea801a5dceb24
Change-Id: Ib2ecaa196b974cec584f6ae5c1e8b4092818d73a
Diffstat (limited to 'src/com/android/documentsui/DrawerController.java')
| -rw-r--r-- | src/com/android/documentsui/DrawerController.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/documentsui/DrawerController.java b/src/com/android/documentsui/DrawerController.java index cb536162d..56b3a879f 100644 --- a/src/com/android/documentsui/DrawerController.java +++ b/src/com/android/documentsui/DrawerController.java @@ -55,7 +55,7 @@ public abstract class DrawerController implements DrawerListener { DrawerLayout layout = (DrawerLayout) activity.findViewById(R.id.drawer_layout); if (layout == null) { - return new DummyDrawerController(); + return new StubDrawerController(); } View drawer = activity.findViewById(R.id.drawer_roots); @@ -76,8 +76,8 @@ public abstract class DrawerController implements DrawerListener { /** * Returns a controller suitable for {@code Layout}. */ - static DrawerController createDummy() { - return new DummyDrawerController(); + static DrawerController createStub() { + return new StubDrawerController(); } private static int calculateDrawerWidth(Activity activity) { @@ -235,9 +235,9 @@ public abstract class DrawerController implements DrawerListener { } /* - * Dummy controller useful with clients that don't host a real drawer. + * Stub controller useful with clients that don't host a real drawer. */ - private static final class DummyDrawerController extends DrawerController { + private static final class StubDrawerController extends DrawerController { @Override public void setOpen(boolean open) {} |
