Browse Source

small fix

this info dialog is not necessary because the flash CheckBox isn't
enabled if API>19
master
DF1E 10 years ago
parent
commit
c60b4389a0
  1. 6
      app/src/main/java/acr/browser/lightning/fragment/GeneralSettingsFragment.java

6
app/src/main/java/acr/browser/lightning/fragment/GeneralSettingsFragment.java

@ -556,18 +556,12 @@ public class GeneralSettingsFragment extends PreferenceFragment implements Prefe @@ -556,18 +556,12 @@ public class GeneralSettingsFragment extends PreferenceFragment implements Prefe
} else {
mPreferences.setFlashSupport(0);
}
// TODO: fix open info dialog on flash ceckbox click
if (!Utils.isFlashInstalled(mActivity) && cbFlash.isChecked()) {
Utils.createInformativeDialog(mActivity,
mActivity.getResources().getString(R.string.title_warning),
mActivity.getResources().getString(R.string.dialog_adobe_not_installed));
cbFlash.setEnabled(false);
mPreferences.setFlashSupport(0);
} else if ((API >= 17) && cbFlash.isChecked()) {
Utils.createInformativeDialog(mActivity,
mActivity.getResources().getString(R.string.title_warning),
mActivity.getResources().getString(R.string.dialog_adobe_unsupported));
}
cbFlash.setChecked((Boolean) newValue);
return true;

Loading…
Cancel
Save