Skip to content

Commit

Permalink
HomeActivity.java
Browse files Browse the repository at this point in the history
  • Loading branch information
watson1982 committed Aug 21, 2023
1 parent c5fd9ce commit a7a5c46
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@ public void onBackPressed() {
} else {
exit();
}
} else if (baseLazyFragment instanceof UserFragment && UserFragment.tvHotListForGrid.canScrollVertically(-1)) {
UserFragment.tvHotListForGrid.scrollToPosition(0);
} else if (baseLazyFragment instanceof UserFragment && UserFragment.tvHotList1.canScrollVertically(-1)) {
UserFragment.tvHotList1.scrollToPosition(0);
this.mGridView.setSelection(0);
} else {
exit();
Expand All @@ -474,6 +474,7 @@ private void exit() {
} else {
mExitTime = System.currentTimeMillis();
Toast.makeText(mContext, "再按一次返回键退出应用", Toast.LENGTH_SHORT).show();
showEmpty();
}
}

Expand Down

0 comments on commit a7a5c46

Please sign in to comment.