mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-06-13 08:40:07 +03:00
some fixes
This commit is contained in:
parent
81a3b47134
commit
3068dea862
1 changed files with 13 additions and 16 deletions
|
@ -587,7 +587,6 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
binding.bottomNavView.setOnItemSelectedListener(item -> {
|
binding.bottomNavView.setOnItemSelectedListener(item -> {
|
||||||
|
|
||||||
int itemId = item.getItemId();
|
int itemId = item.getItemId();
|
||||||
int position = BottomMenu.getPosition(bottomMenu, itemId);
|
int position = BottomMenu.getPosition(bottomMenu, itemId);
|
||||||
if (position >= 0) {
|
if (position >= 0) {
|
||||||
|
@ -878,7 +877,6 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt
|
||||||
* Allow to scroll to top for bottom navigation items
|
* Allow to scroll to top for bottom navigation items
|
||||||
*/
|
*/
|
||||||
private void scrollToTop() {
|
private void scrollToTop() {
|
||||||
if (binding.viewPager.getAdapter() != null) {
|
|
||||||
Fragment fragment = getSupportFragmentManager().findFragmentByTag("f" + binding.viewPager.getCurrentItem());
|
Fragment fragment = getSupportFragmentManager().findFragmentByTag("f" + binding.viewPager.getCurrentItem());
|
||||||
if (fragment instanceof FragmentMastodonTimeline) {
|
if (fragment instanceof FragmentMastodonTimeline) {
|
||||||
FragmentMastodonTimeline fragmentMastodonTimeline = ((FragmentMastodonTimeline) fragment);
|
FragmentMastodonTimeline fragmentMastodonTimeline = ((FragmentMastodonTimeline) fragment);
|
||||||
|
@ -894,7 +892,6 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt
|
||||||
fragmentNotificationContainer.scrollToTop();
|
fragmentNotificationContainer.scrollToTop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue