mirror of
https://github.com/ChronosX88/Influence-P2P.git
synced 2024-11-22 07:12:19 +00:00
Fixed crash when showing snackbar message in StartChatFragment
This commit is contained in:
parent
ba0fadbdb1
commit
8e701da329
@ -45,7 +45,9 @@ public class StartChatFragment extends Fragment implements StartChatViewContract
|
||||
|
||||
@Override
|
||||
public void showMessage(String message) {
|
||||
Snackbar.make(getView().findViewById(R.id.start_chat_coordinator), message, Snackbar.LENGTH_SHORT).show();
|
||||
requireActivity().runOnUiThread(() -> {
|
||||
Snackbar.make(getView().findViewById(R.id.start_chat_coordinator), message, Snackbar.LENGTH_SHORT).show();
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user