small fix
this info dialog is not necessary because the flash CheckBox isn't enabled if API>19
This commit is contained in:
parent
6b80df1d27
commit
c60b4389a0
@ -556,18 +556,12 @@ public class GeneralSettingsFragment extends PreferenceFragment implements Prefe
|
|||||||
} else {
|
} else {
|
||||||
mPreferences.setFlashSupport(0);
|
mPreferences.setFlashSupport(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: fix open info dialog on flash ceckbox click
|
|
||||||
if (!Utils.isFlashInstalled(mActivity) && cbFlash.isChecked()) {
|
if (!Utils.isFlashInstalled(mActivity) && cbFlash.isChecked()) {
|
||||||
Utils.createInformativeDialog(mActivity,
|
Utils.createInformativeDialog(mActivity,
|
||||||
mActivity.getResources().getString(R.string.title_warning),
|
mActivity.getResources().getString(R.string.title_warning),
|
||||||
mActivity.getResources().getString(R.string.dialog_adobe_not_installed));
|
mActivity.getResources().getString(R.string.dialog_adobe_not_installed));
|
||||||
cbFlash.setEnabled(false);
|
cbFlash.setEnabled(false);
|
||||||
mPreferences.setFlashSupport(0);
|
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);
|
cbFlash.setChecked((Boolean) newValue);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user