Make tapping the post number to open reply an option

travisci
Floens 10 years ago
parent c6c9d01e96
commit 9b1a0ae8e9
  1. 2
      Clover/app/src/main/java/org/floens/chan/core/settings/ChanSettings.java
  2. 5
      Clover/app/src/main/java/org/floens/chan/ui/cell/PostCell.java
  3. 1
      Clover/app/src/main/java/org/floens/chan/ui/controller/AdvancedSettingsController.java
  4. 1
      Clover/app/src/main/res/values/strings.xml

@ -81,6 +81,7 @@ public class ChanSettings {
public static final BooleanSetting anonymizeIds;
public static final BooleanSetting repliesButtonsBottom;
public static final BooleanSetting confirmExit;
public static final BooleanSetting tapNoReply;
public static final BooleanSetting watchEnabled;
public static final BooleanSetting watchCountdown;
@ -134,6 +135,7 @@ public class ChanSettings {
anonymizeIds = new BooleanSetting(p, "preference_anonymize_ids", false);
repliesButtonsBottom = new BooleanSetting(p, "preference_buttons_bottom", false);
confirmExit = new BooleanSetting(p, "preference_confirm_exit", false);
tapNoReply = new BooleanSetting(p, "preference_tap_no_reply", false);
watchEnabled = new BooleanSetting(p, "preference_watch_enabled", false, new Setting.SettingCallback<Boolean>() {
@Override

@ -319,8 +319,9 @@ public class PostCell extends LinearLayout implements PostCellInterface, PostLin
SpannableString date = new SpannableString(noText + " " + relativeTime);
date.setSpan(new ForegroundColorSpan(theme.detailsColor), 0, date.length(), 0);
date.setSpan(new AbsoluteSizeSpan(detailsSizePx), 0, date.length(), 0);
date.setSpan(new NoClickableSpan(), 0, noText.length(), 0);
if (ChanSettings.tapNoReply.get()) {
date.setSpan(new NoClickableSpan(), 0, noText.length(), 0);
}
titleParts[titlePartsCount] = date;
title.setText(TextUtils.concat(titleParts));

@ -89,6 +89,7 @@ public class AdvancedSettingsController extends SettingsController {
settings.add(new BooleanSettingView(this, ChanSettings.anonymizeIds, string(R.string.setting_anonymize_ids), null));
settings.add(new BooleanSettingView(this, ChanSettings.repliesButtonsBottom, string(R.string.setting_buttons_bottom), null));
settings.add(new BooleanSettingView(this, ChanSettings.confirmExit, string(R.string.setting_confirm_exit), null));
settings.add(new BooleanSettingView(this, ChanSettings.tapNoReply, string(R.string.setting_tap_no_rely), null));
groups.add(settings);
}

@ -308,6 +308,7 @@ If the pattern matches then the post can be hidden or highlighted.&lt;br>
<string name="setting_buttons_bottom">Reply buttons on the bottom</string>
<string name="setting_confirm_exit">Confirm before exit</string>
<string name="setting_confirm_exit_title">Confirm exit</string>
<string name="setting_tap_no_rely">Tap the post number to reply</string>
<string name="settings_screen_watch">Watcher settings</string>
<string name="settings_group_watch">Watcher settings</string>

Loading…
Cancel
Save