Browse Source

fix crash when replying fails

pull/61/merge
Thodoris1999 6 years ago
parent
commit
220fefb666
  1. 4
      app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java

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

@ -542,8 +542,8 @@ public class TopicActivity extends BaseActivity implements TopicAdapter.OnPostFo
default: default:
Timber.w("Post reply unsuccessful"); Timber.w("Post reply unsuccessful");
Toast.makeText(getBaseContext(), "Post failed!", Toast.LENGTH_SHORT).show(); Toast.makeText(getBaseContext(), "Post failed!", Toast.LENGTH_SHORT).show();
recyclerView.getChildAt(topicItems.size() - 1).setAlpha(1); recyclerView.getChildAt(recyclerView.getChildCount() - 1).setAlpha(1f);
recyclerView.getChildAt(topicItems.size() - 1).setEnabled(true); recyclerView.getChildAt(recyclerView.getChildCount() - 1).setEnabled(true);
} }
} }
}); });

Loading…
Cancel
Save