Merge branch 'bug4995'

This commit is contained in:
Robert Benedikt committed 2020-04-15 14:35:07 +02:00
commit b88d86aac2
1 file changed
+1 -5
@@ -194,11 +194,7 @@ public abstract class SendingServiceAwareActivity extends ResilientActivity
@Override
public void onException(Exception exception) {
if (exception == null || exception instanceof UnauthorizedException) {
Context context = this;
if (getSupportActionBar() != null) {
context = getSupportActionBar().getThemedContext();
}
AlertDialog.Builder builder = new AlertDialog.Builder(context);
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle(getString(R.string.sending_exception_title));
builder.setMessage(getString(R.string.sending_exception_message));
builder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {