Prevent crash

pull/169/head
M66B 5 years ago
parent 4bd83818d3
commit fbc298f85a

@ -211,6 +211,7 @@ 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() {
try {
boolean pro = ActivityBilling.isPro(getContext()); boolean pro = ActivityBilling.isPro(getContext());
if (pro) { if (pro) {
prefs.edit().putBoolean("biometrics", !biometrics).apply(); prefs.edit().putBoolean("biometrics", !biometrics).apply();
@ -219,6 +220,9 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
: R.string.title_setup_biometrics_enable); : R.string.title_setup_biometrics_enable);
} else } else
startActivity(new Intent(getContext(), ActivityBilling.class)); startActivity(new Intent(getContext(), ActivityBilling.class));
} catch (Throwable ex) {
Log.w(ex);
}
} }
}, new Runnable() { }, new Runnable() {
@Override @Override

Loading…
Cancel
Save