@Test public void onActivityResumed_does_noting_if_not_expanded() { verifyNoMoreInteractions(view); presenter.onActivityResumed(activity); }
@Override public void onActivityResumed(Activity activity) { curActivity = activity; if (isExpanded) { final List<Page> visiblePages = calcVisiblePages(); if (!visiblePages.isEmpty()) { view.showExpandedView(activity, visiblePages, findSelected(visiblePages), false); return; } isExpanded = false; view.freeExpandedContent(); notifier.fireDebugWindowHide(); view.showButton(activity, false); } }
OverlayPresenter extends SimpleActivityLifecycleCallbacks implements ScreenTracker.ScreenListener { @Override public void onActivityResumed(Activity activity) { curActivity = activity; if (isExpanded) { final List<Page> visiblePages = calcVisiblePages(); if (!visiblePages.isEmpty()) { view.showExpandedView(activity, visiblePages, findSelected(visiblePages), false); return; } isExpanded = false; view.freeExpandedContent(); notifier.fireDebugWindowHide(); view.showButton(activity, false); } } }
OverlayPresenter extends SimpleActivityLifecycleCallbacks implements ScreenTracker.ScreenListener { @Override public void onActivityResumed(Activity activity) { curActivity = activity; if (isExpanded) { final List<Page> visiblePages = calcVisiblePages(); if (!visiblePages.isEmpty()) { view.showExpandedView(activity, visiblePages, findSelected(visiblePages), false); return; } isExpanded = false; view.freeExpandedContent(); notifier.fireDebugWindowHide(); view.showButton(activity, false); } } OverlayPresenter(
            OverlayView view,
            List<Page> allPages,
            SelectedPageStorage selectedPageStorage,
            ScreenTracker screenTracker,
            PhialNotifier notifier); }
OverlayPresenter extends SimpleActivityLifecycleCallbacks implements ScreenTracker.ScreenListener { @Override public void onActivityResumed(Activity activity) { curActivity = activity; if (isExpanded) { final List<Page> visiblePages = calcVisiblePages(); if (!visiblePages.isEmpty()) { view.showExpandedView(activity, visiblePages, findSelected(visiblePages), false); return; } isExpanded = false; view.freeExpandedContent(); notifier.fireDebugWindowHide(); view.showButton(activity, false); } } OverlayPresenter(
            OverlayView view,
            List<Page> allPages,
            SelectedPageStorage selectedPageStorage,
            ScreenTracker screenTracker,
            PhialNotifier notifier); @Override void onActivityStarted(Activity activity); @Override void onActivityStopped(Activity activity); @Override void onActivityResumed(Activity activity); @Override void onActivityPaused(Activity activity); @Override void onScreenChanged(Screen screen); @Nullable View findViewById(int id); void destroy(); }
OverlayPresenter extends SimpleActivityLifecycleCallbacks implements ScreenTracker.ScreenListener { @Override public void onActivityResumed(Activity activity) { curActivity = activity; if (isExpanded) { final List<Page> visiblePages = calcVisiblePages(); if (!visiblePages.isEmpty()) { view.showExpandedView(activity, visiblePages, findSelected(visiblePages), false); return; } isExpanded = false; view.freeExpandedContent(); notifier.fireDebugWindowHide(); view.showButton(activity, false); } } OverlayPresenter(
            OverlayView view,
            List<Page> allPages,
            SelectedPageStorage selectedPageStorage,
            ScreenTracker screenTracker,
            PhialNotifier notifier); @Override void onActivityStarted(Activity activity); @Override void onActivityStopped(Activity activity); @Override void onActivityResumed(Activity activity); @Override void onActivityPaused(Activity activity); @Override void onScreenChanged(Screen screen); @Nullable View findViewById(int id); void destroy();  }