Updated FAQ, fix

This commit is contained in:
M66B
2020-02-01 15:52:53 +01:00
parent 227d71a1f4
commit 432c2ea345
2 changed files with 6 additions and 3 deletions

View File

@@ -256,6 +256,8 @@ public class Log {
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
String no_internet = context.getString(R.string.title_no_internet);
config.beforeSend(new BeforeSend() {
@Override
public boolean run(@NonNull Report report) {
@@ -285,9 +287,9 @@ public class Log {
return false;
if (ex instanceof IllegalStateException &&
("Not connected".equals(ex.getMessage()) ||
"This operation is not allowed on a closed folder".equals(ex.getMessage()) ||
context.getString(R.string.title_no_internet).equals(ex.getMessage())))
(no_internet.equals(ex.getMessage()) ||
"Not connected".equals(ex.getMessage()) ||
"This operation is not allowed on a closed folder".equals(ex.getMessage())))
return false;
if (ex instanceof FileNotFoundException &&