mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	Use hide() to hide FAB which handles click event too
This commit is contained in:
		
							parent
							
								
									2726b9ef7e
								
							
						
					
					
						commit
						c9118293aa
					
				
					 1 changed files with 10 additions and 9 deletions
				
			
		|  | @ -9,7 +9,7 @@ import android.support.annotation.Nullable; | |||
| import android.support.design.widget.BottomSheetBehavior; | ||||
| import android.support.design.widget.CoordinatorLayout; | ||||
| import android.support.design.widget.FloatingActionButton; | ||||
| import android.util.Log; | ||||
| 
 | ||||
| import android.view.KeyEvent; | ||||
| import android.view.LayoutInflater; | ||||
| import android.view.View; | ||||
|  | @ -415,9 +415,9 @@ public class NearbyMapFragment extends android.support.v4.app.Fragment { | |||
|             fabCamera.startAnimation(fab_close); | ||||
|             fabGallery.startAnimation(fab_close); | ||||
|             fabCommons.startAnimation(fab_close); | ||||
|             fabCamera.setClickable(false); | ||||
|             fabGallery.setClickable(false); | ||||
|             fabCommons.setClickable(false); | ||||
|             fabCamera.hide(); | ||||
|             fabGallery.hide(); | ||||
|             fabCommons.hide(); | ||||
| 
 | ||||
|         } else { | ||||
| 
 | ||||
|  | @ -425,8 +425,9 @@ public class NearbyMapFragment extends android.support.v4.app.Fragment { | |||
|             fabCamera.startAnimation(fab_open); | ||||
|             fabGallery.startAnimation(fab_open); | ||||
|             fabCommons.startAnimation(fab_open); | ||||
|             fabCamera.setClickable(true); | ||||
|             fabGallery.setClickable(true); | ||||
|             fabCamera.show(); | ||||
|             fabGallery.show(); | ||||
|             fabCommons.show(); | ||||
|             fabCommons.setClickable( | ||||
|                     !(place.siteLinks == null | ||||
|                             || Uri.EMPTY.equals(place.siteLinks.getCommonsLink()))); | ||||
|  | @ -442,9 +443,9 @@ public class NearbyMapFragment extends android.support.v4.app.Fragment { | |||
|             fabCamera.startAnimation(fab_close); | ||||
|             fabGallery.startAnimation(fab_close); | ||||
|             fabCommons.startAnimation(fab_close); | ||||
|             fabCamera.setClickable(false); | ||||
|             fabGallery.setClickable(false); | ||||
|             fabCommons.setClickable(false); | ||||
|             fabCamera.hide(); | ||||
|             fabGallery.hide(); | ||||
|             fabCommons.hide(); | ||||
|             this.isFabOpen=!isFabOpen; | ||||
|         } | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 neslihanturan
						neslihanturan