Limit reported error length

This commit is contained in:
M66B
2024-01-28 09:29:40 +01:00
parent f8f9d50590
commit 5ff0ca0267
4 changed files with 12 additions and 5 deletions

View File

@@ -337,7 +337,8 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
public void onClick(DialogInterface dialog, int which) {
Uri uri = Helper.getSupportUri(ActivityMain.this, "Main:error")
.buildUpon()
.appendQueryParameter("message", Log.formatThrowable(ex, false))
.appendQueryParameter("message",
Helper.limit(Log.formatThrowable(ex, false), 384))
.build();
Helper.view(ActivityMain.this, uri, true);
}