mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-30 17:40:34 +01:00
Made Bugsbag sessions opt-in
This commit is contained in:
@@ -39,6 +39,8 @@ import androidx.appcompat.widget.SwitchCompat;
|
||||
import androidx.constraintlayout.widget.Group;
|
||||
import androidx.preference.PreferenceManager;
|
||||
|
||||
import com.bugsnag.android.Bugsnag;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
public class FragmentOptionsMisc extends FragmentBase implements SharedPreferences.OnSharedPreferenceChangeListener {
|
||||
@@ -164,6 +166,10 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
prefs.edit().putBoolean("crash_reports", checked).apply();
|
||||
if (checked)
|
||||
Bugsnag.startSession();
|
||||
else
|
||||
Bugsnag.stopSession();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user