Migliorata registrazione errore di ExportLog
This commit is contained in:
parent
669a38732f
commit
567b288e4d
@ -19,6 +19,8 @@ import androidx.sqlite.db.SimpleSQLiteQuery;
|
||||
|
||||
import com.annimon.stream.Stream;
|
||||
import com.google.android.material.snackbar.Snackbar;
|
||||
import com.google.firebase.crashlytics.CustomKeysAndValues;
|
||||
import com.google.firebase.crashlytics.FirebaseCrashlytics;
|
||||
import com.harrysoft.androidbluetoothserial.BluetoothManager;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
@ -318,6 +320,9 @@ public class MainSettingsFragment extends PreferenceFragmentCompat implements IT
|
||||
this.closeProgress();
|
||||
} catch (Exception ex) {
|
||||
handler.post(() -> {
|
||||
FirebaseCrashlytics.getInstance().recordException(ex, new CustomKeysAndValues.Builder() {{
|
||||
putString("ExportLog", "Error while exporting log");
|
||||
}}.build());
|
||||
this.closeProgress();
|
||||
UtilityExceptions.defaultException(requireContext(), ex);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user