mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	fix :Back Pressed Event not work in Explore tab when user not login (#4404)
* fix :Back Pressed Event not work in Explore tab * minor changes
This commit is contained in:
		
							parent
							
								
									6df35e21a9
								
							
						
					
					
						commit
						2a2d2879a9
					
				
					 3 changed files with 31 additions and 18 deletions
				
			
		|  | @ -281,7 +281,11 @@ public class MainActivity  extends BaseActivity | |||
|             } | ||||
|         } else if (exploreFragment != null && activeFragment == ActiveFragment.EXPLORE) { | ||||
|             // Means that explore fragment is visible | ||||
|             exploreFragment.onBackPressed(); | ||||
|             if (!exploreFragment.onBackPressed()) { | ||||
|                 if (applicationKvStore.getBoolean("login_skipped")) { | ||||
|                     super.onBackPressed(); | ||||
|                 } | ||||
|             } | ||||
|         } else if (bookmarkFragment != null && activeFragment == ActiveFragment.BOOKMARK) { | ||||
|             // Means that bookmark fragment is visible | ||||
|             bookmarkFragment.onBackPressed(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Prince kushwaha
						Prince kushwaha