mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Refactoring
This commit is contained in:
@@ -44,8 +44,6 @@ import androidx.appcompat.widget.SwitchCompat;
|
||||
import androidx.constraintlayout.widget.Group;
|
||||
import androidx.preference.PreferenceManager;
|
||||
|
||||
import com.bugsnag.android.Bugsnag;
|
||||
|
||||
public class FragmentOptionsMisc extends FragmentBase implements SharedPreferences.OnSharedPreferenceChangeListener {
|
||||
private SwitchCompat swBadge;
|
||||
private SwitchCompat swSubscriptions;
|
||||
@@ -190,10 +188,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
.remove("crash_reports_asked")
|
||||
.putBoolean("crash_reports", checked)
|
||||
.apply();
|
||||
if (checked)
|
||||
Bugsnag.startSession();
|
||||
else
|
||||
Bugsnag.stopSession();
|
||||
Log.setCrashReporting(checked);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user