mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 14:53:59 +01:00 
			
		
		
		
	Add toast messages to test
This commit is contained in:
		
							parent
							
								
									64503aaa63
								
							
						
					
					
						commit
						2f647a53e5
					
				
					 2 changed files with 7 additions and 3 deletions
				
			
		|  | @ -409,18 +409,23 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp | |||
|         FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction(); | ||||
|         Fragment fragment = new NearbyListFragment(); | ||||
|         fragment.setArguments(bundle); | ||||
|         fragmentTransaction.replace(R.id.container, fragment, fragment.getClass().getSimpleName()); | ||||
|         fragmentTransaction.replace(R.id.container_sheet, fragment, fragment.getClass().getSimpleName()); | ||||
|         bottomSheetBehavior.setState(BottomSheetBehavior.STATE_HIDDEN); | ||||
|         fragmentTransaction.commitAllowingStateLoss(); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public void onLocationChangedSignificantly(LatLng latLng) { | ||||
|         Toast.makeText(this, "onLocationChangedSignificantly", | ||||
|                 Toast.LENGTH_LONG).show(); | ||||
|         refreshView(false, | ||||
|                 LocationServiceManager.LocationChangeType.LOCATION_SIGNIFICANTLY_CHANGED); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public void onLocationChangedSlightly(LatLng latLng) { | ||||
|         Toast.makeText(this, "onLocationChangedSlightly", | ||||
|                 Toast.LENGTH_LONG).show(); | ||||
|         refreshView(false, | ||||
|                 LocationServiceManager.LocationChangeType.LOCATION_SLIGHTLY_CHANGED); | ||||
|     } | ||||
|  |  | |||
|  | @ -268,7 +268,7 @@ public class NearbyMapFragment extends android.support.v4.app.Fragment { | |||
|     } | ||||
| 
 | ||||
|     private void setupMapView(Bundle savedInstanceState) { | ||||
|         options = new MapboxMapOptions() | ||||
|         MapboxMapOptions options = new MapboxMapOptions() | ||||
|                 .styleUrl(Style.OUTDOORS) | ||||
|                 .camera(new CameraPosition.Builder() | ||||
|                         .target(new LatLng(curLatLng.getLatitude(), curLatLng.getLongitude())) | ||||
|  | @ -513,4 +513,3 @@ public class NearbyMapFragment extends android.support.v4.app.Fragment { | |||
|     } | ||||
| } | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 neslihanturan
						neslihanturan