|
@ -633,8 +633,11 @@ public class TopicActivity extends BaseActivity implements TopicAdapter.OnPostFo |
|
|
else { |
|
|
else { |
|
|
Timber.i("Post edit unsuccessful"); |
|
|
Timber.i("Post edit unsuccessful"); |
|
|
Toast.makeText(BaseApplication.getInstance().getApplicationContext(), "Edit failed!", Toast.LENGTH_SHORT).show(); |
|
|
Toast.makeText(BaseApplication.getInstance().getApplicationContext(), "Edit failed!", Toast.LENGTH_SHORT).show(); |
|
|
recyclerView.getChildAt(viewModel.getPostBeingEditedPosition()).setAlpha(1); |
|
|
View postBeingEditedView = recyclerView.getChildAt(viewModel.getPostBeingEditedPosition()); |
|
|
recyclerView.getChildAt(viewModel.getPostBeingEditedPosition()).setEnabled(true); |
|
|
if (postBeingEditedView != null) { |
|
|
|
|
|
postBeingEditedView.setAlpha(1); |
|
|
|
|
|
postBeingEditedView.setEnabled(true); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|