File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
app/src/main/java/fr/free/nrw/commons Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,9 +83,9 @@ public void onCreate(Bundle savedInstanceState) {
83
83
onOrientationChanged = true ; // Will be used in nearby fragment to determine significant update of map
84
84
85
85
//If nearby map was visible, call on Tab Selected to call all nearby operations
86
- if (savedInstanceState .getInt ("viewPagerCurrentItem" ) == 1 ) {
86
+ /* if (savedInstanceState.getInt("viewPagerCurrentItem") == 1) {
87
87
((NearbyFragment)contributionsActivityPagerAdapter.getItem(1)).onTabSelected(onOrientationChanged);
88
- }
88
+ }*/
89
89
}
90
90
}
91
91
@@ -187,7 +187,6 @@ public void onPageSelected(int position) {
187
187
updateMenuItem ();
188
188
// Do all permission and GPS related tasks on tab selected, not on create
189
189
((NearbyFragment )contributionsActivityPagerAdapter .getItem (1 )).onTabSelected (onOrientationChanged );
190
-
191
190
break ;
192
191
default :
193
192
tabLayout .getTabAt (CONTRIBUTIONS_TAB_POSITION ).select ();
Original file line number Diff line number Diff line change @@ -731,6 +731,7 @@ public void onResume() {
731
731
}
732
732
733
733
public void onTabSelected (boolean onOrientationChanged ) {
734
+ Log .d ("deneme***" ,"onTabSelected" );
734
735
Timber .d ("On nearby tab selected" );
735
736
this .onOrientationChanged = onOrientationChanged ;
736
737
performNearbyOperations ();
You can’t perform that action at this time.
0 commit comments