Unexpected error handling

This commit is contained in:
M66B
2018-09-15 05:49:54 +00:00
parent d9384a8dfe
commit 1cc3d79ce9
15 changed files with 44 additions and 43 deletions

View File

@@ -28,7 +28,6 @@ import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.ProgressBar;
import android.widget.Toast;
import com.google.android.material.bottomnavigation.BottomNavigationView;
@@ -130,7 +129,7 @@ public class FragmentAnswer extends FragmentEx {
@Override
protected void onException(Bundle args, Throwable ex) {
Helper.setViewsEnabled(view, true);
Toast.makeText(getContext(), ex.toString(), Toast.LENGTH_LONG).show();
Helper.unexpectedError(getContext(), ex);
}
}.load(this, args);
}
@@ -174,7 +173,7 @@ public class FragmentAnswer extends FragmentEx {
@Override
protected void onException(Bundle args, Throwable ex) {
Helper.setViewsEnabled(view, true);
Toast.makeText(getContext(), ex.toString(), Toast.LENGTH_LONG).show();
Helper.unexpectedError(getContext(), ex);
}
}.load(this, args);
}