mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Remove unnecessary performNearbyOperations call on orientation changed.
This commit is contained in:
parent
b180824382
commit
ccd9e8672c
2 changed files with 3 additions and 3 deletions
|
|
@ -83,9 +83,9 @@ public class MainActivity extends AuthenticatedActivity implements FragmentManag
|
|||
onOrientationChanged = true; // Will be used in nearby fragment to determine significant update of map
|
||||
|
||||
//If nearby map was visible, call on Tab Selected to call all nearby operations
|
||||
if (savedInstanceState.getInt("viewPagerCurrentItem") == 1) {
|
||||
/*if (savedInstanceState.getInt("viewPagerCurrentItem") == 1) {
|
||||
((NearbyFragment)contributionsActivityPagerAdapter.getItem(1)).onTabSelected(onOrientationChanged);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -187,7 +187,6 @@ public class MainActivity extends AuthenticatedActivity implements FragmentManag
|
|||
updateMenuItem();
|
||||
// Do all permission and GPS related tasks on tab selected, not on create
|
||||
((NearbyFragment)contributionsActivityPagerAdapter.getItem(1)).onTabSelected(onOrientationChanged);
|
||||
|
||||
break;
|
||||
default:
|
||||
tabLayout.getTabAt(CONTRIBUTIONS_TAB_POSITION).select();
|
||||
|
|
|
|||
|
|
@ -731,6 +731,7 @@ public class NearbyFragment extends CommonsDaggerSupportFragment
|
|||
}
|
||||
|
||||
public void onTabSelected(boolean onOrientationChanged) {
|
||||
Log.d("deneme***","onTabSelected");
|
||||
Timber.d("On nearby tab selected");
|
||||
this.onOrientationChanged = onOrientationChanged;
|
||||
performNearbyOperations();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue