mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	* fix-Incomplete Nearby List shown in Landscape mode (#2270) * fix-Incomplete Nearby List shown in Landscape mode (#2770) * added the setLayoutParams() method * reformed the codechange
This commit is contained in:
		
							parent
							
								
									37c39ad55f
								
							
						
					
					
						commit
						2695bbaf4b
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -1543,4 +1543,12 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment | |||
|     public void setNearbyParentFragmentInstanceReadyCallback(NearbyParentFragmentInstanceReadyCallback nearbyParentFragmentInstanceReadyCallback) { | ||||
|         this.nearbyParentFragmentInstanceReadyCallback = nearbyParentFragmentInstanceReadyCallback; | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public void onConfigurationChanged(@NonNull final Configuration newConfig) { | ||||
|         super.onConfigurationChanged(newConfig); | ||||
|         ViewGroup.LayoutParams rlBottomSheetLayoutParams = rlBottomSheet.getLayoutParams(); | ||||
|         rlBottomSheetLayoutParams.height = getActivity().getWindowManager().getDefaultDisplay().getHeight() / 16 * 9; | ||||
|         rlBottomSheet.setLayoutParams(rlBottomSheetLayoutParams); | ||||
|         } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Prince kushwaha
						Prince kushwaha