mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	Fix transparency
This commit is contained in:
		
							parent
							
								
									57dc1cf5ed
								
							
						
					
					
						commit
						88cf1bdcd7
					
				
					 1 changed files with 12 additions and 2 deletions
				
			
		|  | @ -57,6 +57,8 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp | |||
|     LinearLayout bottomSheet; | ||||
|     @BindView(R.id.fab_list) | ||||
|     FloatingActionButton fabList; | ||||
|     @BindView(R.id.transparentView) | ||||
|     View transparentView; | ||||
| 
 | ||||
|     @Inject | ||||
|     LocationServiceManager locationManager; | ||||
|  | @ -103,6 +105,8 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp | |||
|     } | ||||
| 
 | ||||
|     private void initBottomSheetBehaviour() { | ||||
|         transparentView.setAlpha(0); | ||||
| 
 | ||||
|         bottomSheet.getLayoutParams().height = getWindowManager() | ||||
|                 .getDefaultDisplay().getHeight() / 16 * 9; | ||||
|         bottomSheetBehavior = BottomSheetBehavior.from(bottomSheet); | ||||
|  | @ -330,7 +334,7 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp | |||
| 
 | ||||
|         progressBar.setVisibility(View.VISIBLE); | ||||
|         placesDisposable = Observable.fromCallable(() -> nearbyController | ||||
|                 .loadAttractionsFromLocation(curLatLang, this)) | ||||
|                 .loadAttractionsFromLocation(curLatLang)) | ||||
|                 .subscribeOn(Schedulers.io()) | ||||
|                 .observeOn(AndroidSchedulers.mainThread()) | ||||
|                 .subscribe(this::populatePlaces); | ||||
|  | @ -355,13 +359,19 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp | |||
| 
 | ||||
|         lockNearbyView(true); | ||||
|         // Begin the transaction | ||||
|         if (viewMode.isMap()) { | ||||
|         // Begin the transaction | ||||
|         /*if (viewMode.isMap()) { | ||||
|             setMapFragment(); | ||||
|         } else { | ||||
|             setListFragment(); | ||||
|         } | ||||
|         swipeLayout.setRefreshing(false); | ||||
|         }*/ | ||||
|         setMapFragment(); | ||||
|         setListFragment(); | ||||
| 
 | ||||
|         hideProgressBar(); | ||||
|         swipeLayout.setRefreshing(false); | ||||
|     } | ||||
| 
 | ||||
|     private void lockNearbyView(boolean lock) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 neslihanturan
						neslihanturan