Browse Source

TopicActivity onBackPressed hotfix

pull/24/head
Ezerous 7 years ago
parent
commit
79c30bbb47
  1. 2
      app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java

2
app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java

@ -327,7 +327,7 @@ public class TopicActivity extends BaseActivity {
drawer.closeDrawer(); drawer.closeDrawer();
return; return;
} }
else if(postsList.get(postsList.size()-1)==null) else if(postsList!=null && postsList.size()>0 && postsList.get(postsList.size()-1)==null)
{ {
postsList.remove(postsList.size() - 1); postsList.remove(postsList.size() - 1);
topicAdapter.notifyItemRemoved(postsList.size()); topicAdapter.notifyItemRemoved(postsList.size());

Loading…
Cancel
Save