mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
4bd83818d3
commit
fbc298f85a
|
@ -211,14 +211,18 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
|
||||||
Helper.authenticate(getActivity(), biometrics, new Runnable() {
|
Helper.authenticate(getActivity(), biometrics, new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
boolean pro = ActivityBilling.isPro(getContext());
|
try {
|
||||||
if (pro) {
|
boolean pro = ActivityBilling.isPro(getContext());
|
||||||
prefs.edit().putBoolean("biometrics", !biometrics).apply();
|
if (pro) {
|
||||||
btnBiometrics.setText(biometrics
|
prefs.edit().putBoolean("biometrics", !biometrics).apply();
|
||||||
? R.string.title_setup_biometrics_disable
|
btnBiometrics.setText(biometrics
|
||||||
: R.string.title_setup_biometrics_enable);
|
? R.string.title_setup_biometrics_disable
|
||||||
} else
|
: R.string.title_setup_biometrics_enable);
|
||||||
startActivity(new Intent(getContext(), ActivityBilling.class));
|
} else
|
||||||
|
startActivity(new Intent(getContext(), ActivityBilling.class));
|
||||||
|
} catch (Throwable ex) {
|
||||||
|
Log.w(ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, new Runnable() {
|
}, new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue