Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,9 @@ private void applyFontSize() {
case (SettingsService.SETTING_SMALL):
mText.setTextSize(16.0f);
break;
case (SettingsService.SETTING_MEDIUM_SMALL):
mText.setTextSize(18.0f);
break;
case (SettingsService.SETTING_LARGE):
mText.setTextSize(24.0f);
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,21 @@ public FontSizePreference(Context context, AttributeSet attrs) {
case SettingsService.SETTING_SMALL:
selected = 1;
break;
case SettingsService.SETTING_MEDIUM:
case SettingsService.SETTING_MEDIUM_SMALL:
selected = 2;
break;
case SettingsService.SETTING_LARGE:
case SettingsService.SETTING_MEDIUM:
selected = 3;
break;
case SettingsService.SETTING_HUGE:
case SettingsService.SETTING_LARGE:
selected = 4;
break;
case SettingsService.SETTING_EXTRA_HUGE:
case SettingsService.SETTING_HUGE:
selected = 5;
break;
case SettingsService.SETTING_EXTRA_HUGE:
selected = 6;
break;
}
}

Expand All @@ -71,15 +74,18 @@ public void onClick(DialogInterface dialog, int whichButton) {
settingsService.setFontSize(SettingsService.SETTING_SMALL, getContext());
break;
case 2:
settingsService.setFontSize(SettingsService.SETTING_MEDIUM, getContext());
settingsService.setFontSize(SettingsService.SETTING_MEDIUM_SMALL, getContext());
break;
case 3:
settingsService.setFontSize(SettingsService.SETTING_MEDIUM, getContext());
break;
case 4:
settingsService.setFontSize(SettingsService.SETTING_LARGE, getContext());
break;
case 4:
case 5:
settingsService.setFontSize(SettingsService.SETTING_HUGE, getContext());
break;
case 5:
case 6:
settingsService.setFontSize(SettingsService.SETTING_EXTRA_HUGE, getContext());
break;
}
Expand All @@ -93,6 +99,7 @@ public void onClick(DialogInterface dialog, int whichButton) {
String[] arrayOfFonts = {
SettingsService.SETTING_EXTRA_SMALL,
SettingsService.SETTING_SMALL,
SettingsService.SETTING_MEDIUM_SMALL,
SettingsService.SETTING_MEDIUM,
SettingsService.SETTING_LARGE,
SettingsService.SETTING_HUGE,
Expand Down Expand Up @@ -143,6 +150,9 @@ public View getView(int position, View convertView, @NonNull ViewGroup parent)
case SettingsService.SETTING_SMALL:
tv.setTextSize(16.0f);
break;
case SettingsService.SETTING_MEDIUM_SMALL:
tv.setTextSize(18.0f);
break;
case SettingsService.SETTING_MEDIUM:
tv.setTextSize(20.0f);
break;
Expand All @@ -162,4 +172,4 @@ public View getView(int position, View convertView, @NonNull ViewGroup parent)
return v;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public class SettingsService {
public static final String SETTING_USE_SIMPLE_SCROLLING = "use_simple_scrolling";

public static final String SETTING_MEDIUM = "Medium";
public static final String SETTING_MEDIUM_SMALL = "Medium Small";
public static final String SETTING_EXTRA_SMALL = "Extra Small";
public static final String SETTING_SMALL = "Small";
public static final String SETTING_LARGE = "Large";
Expand Down