mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-28 11:58:23 +01:00
Fix force stop when long pressing the toolbar in MainActivity in anonymous mode.
This commit is contained in:
parent
2277c97cc0
commit
4b3bbf8e7e
@ -1366,9 +1366,17 @@ public class MainActivity extends BaseActivity implements SortTypeSelectionCallb
|
||||
|
||||
void goBackToTop() {
|
||||
if (viewPager.getCurrentItem() == 0) {
|
||||
tab1.goBackToTop();
|
||||
if (mAccessToken != null && tab1 != null) {
|
||||
tab1.goBackToTop();
|
||||
} else if (tab2 != null) {
|
||||
tab2.goBackToTop();
|
||||
}
|
||||
} else if (viewPager.getCurrentItem() == 1) {
|
||||
tab2.goBackToTop();
|
||||
if (mAccessToken != null && tab2 != null) {
|
||||
tab2.goBackToTop();
|
||||
} else if (tab3 != null) {
|
||||
tab3.goBackToTop();
|
||||
}
|
||||
} else {
|
||||
tab3.goBackToTop();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user