Browse Source

Modifying language around disabled settings

master
anthony restaino 8 years ago
parent
commit
7eac943eb1
  1. 6
      app/src/main/java/acr/browser/lightning/fragment/GeneralSettingsFragment.java
  2. 2
      app/src/main/res/values-it/strings.xml
  3. 3
      app/src/main/res/values/strings.xml

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

@ -156,11 +156,15 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme @@ -156,11 +156,15 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
cbAds.setEnabled(BuildConfig.FULL_VERSION);
if (!BuildConfig.FULL_VERSION) {
cbAds.setSummary(R.string.upsell_plus_version);
}
if (API < Build.VERSION_CODES.KITKAT) {
cbFlash.setEnabled(true);
} else {
cbFlash.setEnabled(false);
cbFlash.setSummary(getResources().getString(R.string.flash_not_supported));
cbFlash.setSummary(R.string.flash_not_supported);
}
cbImages.setChecked(imagesBool);

2
app/src/main/res/values-it/strings.xml

@ -237,7 +237,7 @@ @@ -237,7 +237,7 @@
<string name="message_added_to_homescreen">Scorciatoia aggiunta</string>
<string name="action_delete_all_bookmarks">Cancella tutti i segnalibri</string>
<string name="swap_bookmarks_and_tabs">Inverti pannello segnalibri con schede</string>
<string name="flash_not_supported">Flash Player non è supportato dal tuo sistema!</string>
<string name="flash_not_supported">Flash Player non è supportato dal tuo sistema</string>
<string name="faq">FAQ</string>
<string name="faq_description">Domande più frequenti</string>

3
app/src/main/res/values/strings.xml

@ -227,7 +227,8 @@ @@ -227,7 +227,8 @@
<string name="action_add_to_homescreen">Add to home screen</string>
<string name="message_added_to_homescreen">Shortcut added to home screen</string>
<string name="action_delete_all_bookmarks">Delete all bookmarks</string>
<string name="flash_not_supported">Flash Player is not supported by your system!</string>
<string name="flash_not_supported">Flash Player is not supported by your system</string>
<string name="upsell_plus_version">Upgrade to Lightning Plus to block ads</string>
<string name="faq">FAQ</string>
<string name="faq_description">Frequently asked questions</string>

Loading…
Cancel
Save