Set default font size to 16 for tablets

filtering
Floens 10 years ago
parent abcf5d0cf9
commit b2f3c21f28
  1. 6
      Clover/app/src/main/java/org/floens/chan/core/settings/ChanSettings.java

@ -21,6 +21,7 @@ import android.content.SharedPreferences;
import android.os.Environment; import android.os.Environment;
import org.floens.chan.Chan; import org.floens.chan.Chan;
import org.floens.chan.R;
import org.floens.chan.chan.ChanUrls; import org.floens.chan.chan.ChanUrls;
import org.floens.chan.utils.AndroidUtils; import org.floens.chan.utils.AndroidUtils;
@ -68,7 +69,10 @@ public class ChanSettings {
SharedPreferences p = AndroidUtils.getPreferences(); SharedPreferences p = AndroidUtils.getPreferences();
theme = new StringSetting(p, "preference_theme", "light"); theme = new StringSetting(p, "preference_theme", "light");
fontSize = new StringSetting(p, "preference_font", "14");
boolean tablet = AndroidUtils.getRes().getBoolean(R.bool.is_tablet);
fontSize = new StringSetting(p, "preference_font", tablet ? "16" : "14");
openLinkConfirmation = new BooleanSetting(p, "preference_open_link_confirmation", true); openLinkConfirmation = new BooleanSetting(p, "preference_open_link_confirmation", true);
autoRefreshThread = new BooleanSetting(p, "preference_auto_refresh_thread", true); autoRefreshThread = new BooleanSetting(p, "preference_auto_refresh_thread", true);
imageAutoLoad = new BooleanSetting(p, "preference_image_auto_load", true); imageAutoLoad = new BooleanSetting(p, "preference_image_auto_load", true);

Loading…
Cancel
Save