Improved rule/header message

This commit is contained in:
M66B 2024-02-10 21:05:14 +01:00
parent b172e217b2
commit e49a991f0a
3 changed files with 6 additions and 4 deletions

View File

@ -478,7 +478,8 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> {
@Override
protected void onException(Bundle args, Throwable ex) {
Log.unexpectedError(parentFragment.getParentFragmentManager(), ex, false);
boolean report = !(ex instanceof IllegalArgumentException);
Log.unexpectedError(parentFragment.getParentFragmentManager(), ex, report, 71);
}
}.execute(context, owner, args, "rule:execute");
}

View File

@ -137,7 +137,7 @@ public class FragmentDialogRuleCheck extends FragmentDialogBase {
@Override
protected void onException(Bundle args, Throwable ex) {
boolean report = !(ex instanceof IllegalArgumentException);
Log.unexpectedError(getParentFragmentManager(), ex, report);
Log.unexpectedError(getParentFragmentManager(), ex, report, 71);
}
}.execute(FragmentDialogRuleCheck.this, args, "rule:execute");
}
@ -200,7 +200,7 @@ public class FragmentDialogRuleCheck extends FragmentDialogBase {
tvNoMessages.setText(new ThrowableWrapper(ex).getSafeMessage());
tvNoMessages.setVisibility(View.VISIBLE);
} else
Log.unexpectedError(getParentFragmentManager(), ex);
Log.unexpectedError(getParentFragmentManager(), ex, 71);
}
}.execute(this, args, "rule:check");

View File

@ -1252,7 +1252,8 @@ public class FragmentFolders extends FragmentBase {
@Override
protected void onException(Bundle args, Throwable ex) {
Log.unexpectedError(getParentFragmentManager(), ex, false);
boolean report = !(ex instanceof IllegalArgumentException);
Log.unexpectedError(getParentFragmentManager(), ex, report, 71);
}
}.execute(this, args, "folder:rules");
}