Prevent crash

This commit is contained in:
M66B 2019-01-05 18:30:37 +00:00
parent 6dad7d2875
commit f1a171261f
1 changed files with 2 additions and 2 deletions

View File

@ -2049,6 +2049,8 @@ public class FragmentMessages extends FragmentEx {
}); });
snackbar.show(); snackbar.show();
final Context context = getContext().getApplicationContext();
// Wait // Wait
new Handler().postDelayed(new Runnable() { new Handler().postDelayed(new Runnable() {
@Override @Override
@ -2059,8 +2061,6 @@ public class FragmentMessages extends FragmentEx {
if (snackbar.isShown()) if (snackbar.isShown())
snackbar.dismiss(); snackbar.dismiss();
final Context context = getContext().getApplicationContext();
new Thread(new Runnable() { new Thread(new Runnable() {
@Override @Override
public void run() { public void run() {