@Test public void testHandleGpsLost() { GuidanceStreetLabelListener listener = mock(GuidanceStreetLabelListener.class); mGuidanceStreetLabelPresenter.addListener(listener); mGuidanceStreetLabelPresenter.handleGpsLost(); verify(listener, times(2)).onDataChanged(any()); }
protected void handleGpsLost() { final GuidanceStreetLabelData data = new GuidanceStreetLabelData(mContext.getString(R.string.msdkui_waypoint_current_location), ThemeUtil.getColor(mContext, R.attr.colorForegroundSecondary)); notifyDataChanged(data); }
GuidanceStreetLabelPresenter extends BaseGuidancePresenter { protected void handleGpsLost() { final GuidanceStreetLabelData data = new GuidanceStreetLabelData(mContext.getString(R.string.msdkui_waypoint_current_location), ThemeUtil.getColor(mContext, R.attr.colorForegroundSecondary)); notifyDataChanged(data); } }
GuidanceStreetLabelPresenter extends BaseGuidancePresenter { protected void handleGpsLost() { final GuidanceStreetLabelData data = new GuidanceStreetLabelData(mContext.getString(R.string.msdkui_waypoint_current_location), ThemeUtil.getColor(mContext, R.attr.colorForegroundSecondary)); notifyDataChanged(data); } GuidanceStreetLabelPresenter(Context context, NavigationManager navigationManager,
                                        Route route); }
GuidanceStreetLabelPresenter extends BaseGuidancePresenter { protected void handleGpsLost() { final GuidanceStreetLabelData data = new GuidanceStreetLabelData(mContext.getString(R.string.msdkui_waypoint_current_location), ThemeUtil.getColor(mContext, R.attr.colorForegroundSecondary)); notifyDataChanged(data); } GuidanceStreetLabelPresenter(Context context, NavigationManager navigationManager,
                                        Route route); @Override void handleNewInstructionEvent(); @Override void handleManeuverEvent(); void addListener(GuidanceStreetLabelListener listener); void removeListener(GuidanceStreetLabelListener listener); }
GuidanceStreetLabelPresenter extends BaseGuidancePresenter { protected void handleGpsLost() { final GuidanceStreetLabelData data = new GuidanceStreetLabelData(mContext.getString(R.string.msdkui_waypoint_current_location), ThemeUtil.getColor(mContext, R.attr.colorForegroundSecondary)); notifyDataChanged(data); } GuidanceStreetLabelPresenter(Context context, NavigationManager navigationManager,
                                        Route route); @Override void handleNewInstructionEvent(); @Override void handleManeuverEvent(); void addListener(GuidanceStreetLabelListener listener); void removeListener(GuidanceStreetLabelListener listener);  }