@Test public void testSettings_WayOverlay_ON_OFF() { String prefShowWayOverlay = resources.getString(R.string.key_pref_mapMatching_showWayOverlay); sharedPreferences.edit().putBoolean(prefShowWayOverlay, true).commit(); activity.onResume(); assertTrue(activity.getMapView().getOverlays().contains(activity.wayOverlay)); sharedPreferences.edit().putBoolean(prefShowWayOverlay, false).commit(); activity.onResume(); assertFalse(activity.getMapView().getOverlays().contains(activity.wayOverlay)); }
@Override protected void onResume() { super.onResume(); applySettings(); }
MapActivity extends AbstractMapActivity implements DownloadListener<Map<String, Collection>> { @Override protected void onResume() { super.onResume(); applySettings(); } }
MapActivity extends AbstractMapActivity implements DownloadListener<Map<String, Collection>> { @Override protected void onResume() { super.onResume(); applySettings(); }  }
MapActivity extends AbstractMapActivity implements DownloadListener<Map<String, Collection>> { @Override protected void onResume() { super.onResume(); applySettings(); }  @Override void onCreate(final Bundle savedInstanceState); @Override boolean onCreateOptionsMenu(final Menu menu); @Override void onDownloadFinished(final DownloadTask task, final boolean success, final Map<String, Collection> data); @Override // NOSONAR - Method cannot be shortened!!! boolean onOptionsItemSelected(final MenuItem item); void toggleFingerprintMode(final View view); }
MapActivity extends AbstractMapActivity implements DownloadListener<Map<String, Collection>> { @Override protected void onResume() { super.onResume(); applySettings(); }  @Override void onCreate(final Bundle savedInstanceState); @Override boolean onCreateOptionsMenu(final Menu menu); @Override void onDownloadFinished(final DownloadTask task, final boolean success, final Map<String, Collection> data); @Override // NOSONAR - Method cannot be shortened!!! boolean onOptionsItemSelected(final MenuItem item); void toggleFingerprintMode(final View view);  }