mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 10:47:28 +00:00
Prevent crash
This commit is contained in:
parent
62a4fba00d
commit
e943593035
1 changed files with 25 additions and 19 deletions
|
@ -30,6 +30,7 @@ import android.net.ConnectivityManager;
|
||||||
import android.net.Network;
|
import android.net.Network;
|
||||||
import android.net.NetworkCapabilities;
|
import android.net.NetworkCapabilities;
|
||||||
import android.net.NetworkInfo;
|
import android.net.NetworkInfo;
|
||||||
|
import android.os.BadParcelableException;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.DeadObjectException;
|
import android.os.DeadObjectException;
|
||||||
|
@ -320,6 +321,7 @@ public class Log {
|
||||||
if (data == null)
|
if (data == null)
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
|
try {
|
||||||
Set<String> keys = data.keySet();
|
Set<String> keys = data.keySet();
|
||||||
for (String key : keys) {
|
for (String key : keys) {
|
||||||
Object v = data.get(key);
|
Object v = data.get(key);
|
||||||
|
@ -343,6 +345,10 @@ public class Log {
|
||||||
|
|
||||||
result.add(key + "=" + value + (value == null ? "" : " (" + v.getClass().getSimpleName() + ")"));
|
result.add(key + "=" + value + (value == null ? "" : " (" + v.getClass().getSimpleName() + ")"));
|
||||||
}
|
}
|
||||||
|
} catch (BadParcelableException ex) {
|
||||||
|
// android.os.BadParcelableException: ClassNotFoundException when unmarshalling: ...
|
||||||
|
Log.e(ex);
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue