Small improvement

This commit is contained in:
M66B 2020-11-08 20:21:50 +01:00
parent b2e533b05d
commit cce379a9c8
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ package eu.faircode.email;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.content.SharedPreferences; import android.content.SharedPreferences;
import android.database.sqlite.SQLiteConstraintException;
import android.graphics.Color; import android.graphics.Color;
import android.os.Bundle; import android.os.Bundle;
import android.text.TextUtils; import android.text.TextUtils;
@ -605,7 +606,7 @@ public class FragmentFolder extends FragmentBase {
Snackbar.make(view, ex.getMessage(), Snackbar.LENGTH_LONG) Snackbar.make(view, ex.getMessage(), Snackbar.LENGTH_LONG)
.setGestureInsetBottomIgnored(true).show(); .setGestureInsetBottomIgnored(true).show();
else else
Log.unexpectedError(getParentFragmentManager(), ex); Log.unexpectedError(getParentFragmentManager(), ex, !(ex instanceof SQLiteConstraintException));
} }
}.execute(this, args, "folder:save"); }.execute(this, args, "folder:save");
} }