mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 13:23:58 +01:00
parent
04d29fe5f2
commit
3ceaaa9bb4
3 changed files with 4 additions and 29 deletions
|
|
@ -127,19 +127,6 @@ public class CategoryImagesActivity
|
|||
forceInitBackButton();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method is called on backPressed when mediaDetailFragment is opened in the activity.
|
||||
*/
|
||||
@Override
|
||||
protected void onResume() {
|
||||
if (supportFragmentManager.getBackStackEntryCount()==1){
|
||||
//FIXME: Temporary fix for screen rotation inside media details. If we don't call onBackPressed then fragment stack is increasing every time.
|
||||
//FIXME: Similar issue like this https://github.com/commons-app/apps-android-commons/issues/894
|
||||
onBackPressed();
|
||||
}
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
/**
|
||||
* Consumers should be simply using this method to use this activity.
|
||||
* @param context A Context of the application package implementing this class.
|
||||
|
|
|
|||
|
|
@ -177,20 +177,6 @@ public class ExploreActivity
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* This method is called on Screen Rotation
|
||||
*/
|
||||
@Override
|
||||
protected void onResume() {
|
||||
if (supportFragmentManager.getBackStackEntryCount() == 1) {
|
||||
//FIXME: Temporary fix for screen rotation inside media details. If we don't call onBackPressed then fragment stack is increasing every time.
|
||||
//FIXME: Similar issue like this https://github.com/commons-app/apps-android-commons/issues/894
|
||||
//
|
||||
onBackPressed();
|
||||
}
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method is called on backPressed of anyFragment in the activity.
|
||||
* If condition is called when mediaDetailFragment is opened.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue