mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
Fix issue #69 - App kept all notification position
This commit is contained in:
parent
42df8dfcb6
commit
59df0d65a7
2 changed files with 6 additions and 3 deletions
|
@ -252,8 +252,11 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt
|
|||
} else if (extras.getInt(Helper.INTENT_ACTION) == Helper.OPEN_NOTIFICATION) {
|
||||
final Handler handler = new Handler();
|
||||
handler.postDelayed(() -> {
|
||||
binding.bottomNavView.getMenu().getItem(3).setChecked(true);
|
||||
binding.viewPager.setCurrentItem(3);
|
||||
int position = BottomMenu.getPosition(bottomMenu, R.id.nav_notifications);
|
||||
if (position > 0) {
|
||||
binding.bottomNavView.getMenu().getItem(position).setChecked(true);
|
||||
binding.viewPager.setCurrentItem(position);
|
||||
}
|
||||
}, 1000);
|
||||
intent.removeExtra(Helper.INTENT_ACTION);
|
||||
|
||||
|
|
|
@ -393,7 +393,7 @@ public class FragmentMastodonTimeline extends Fragment {
|
|||
if (max_id == null || (fetched_statuses.pagination.max_id != null && fetched_statuses.pagination.max_id.compareTo(max_id) < 0)) {
|
||||
max_id = fetched_statuses.pagination.max_id;
|
||||
}
|
||||
if (min_id == null || (fetched_statuses.pagination.max_id != null && fetched_statuses.pagination.min_id.compareTo(min_id) > 0)) {
|
||||
if (min_id == null || (fetched_statuses.pagination.min_id != null && fetched_statuses.pagination.min_id.compareTo(min_id) > 0)) {
|
||||
min_id = fetched_statuses.pagination.min_id;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue