Check if debug info available

This commit is contained in:
M66B
2023-12-16 13:16:25 +01:00
parent ab3956eec4
commit c1eaa33c10
4 changed files with 18 additions and 8 deletions

View File

@@ -169,6 +169,10 @@ public class DebugHelper {
"networkaddress.cache.negative.ttl"
));
static boolean isAvailable() {
return true;
}
static EntityMessage getDebugInfo(Context context, String source, int title, Throwable ex, String log, Bundle args) throws IOException, JSONException {
StringBuilder sb = new StringBuilder();
sb.append(context.getString(title)).append("\n\n");