mirror of
				https://git.suyu.dev/suyu/suyu.git
				synced 2025-11-04 12:34:39 +08:00 
			
		
		
		
	android: EmulationActivity: Fix orientation on Mi Pad 5.
This commit is contained in:
		
							parent
							
								
									9c6fc44a59
								
							
						
					
					
						commit
						064bad6ddf
					
				@ -263,7 +263,8 @@ class EmulationActivity : AppCompatActivity(), SensorEventListener {
 | 
				
			|||||||
        val config: Configuration = resources.configuration
 | 
					        val config: Configuration = resources.configuration
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ((config.screenLayout and Configuration.SCREENLAYOUT_LONG_YES) != 0 ||
 | 
					        if ((config.screenLayout and Configuration.SCREENLAYOUT_LONG_YES) != 0 ||
 | 
				
			||||||
            (config.screenLayout and Configuration.SCREENLAYOUT_LONG_NO) == 0) {
 | 
					            (config.screenLayout and Configuration.SCREENLAYOUT_LONG_NO) == 0 ||
 | 
				
			||||||
 | 
					            (config.screenLayout and Configuration.SCREENLAYOUT_SIZE_SMALL) != 0) {
 | 
				
			||||||
            return rotation
 | 
					            return rotation
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        when (rotation) {
 | 
					        when (rotation) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user