forked from Archives/Athou_commafeed
Add user preference to disable sidebar swipe-to-open on mobile; cleanup migrations + README in prep for long-term fork maintenance
This commit is contained in:
@@ -145,6 +145,7 @@ public class UserSettings extends AbstractModel {
|
||||
private boolean unreadCountTitle;
|
||||
private boolean unreadCountFavicon;
|
||||
private boolean disablePullToRefresh;
|
||||
private boolean disableMobileSwipe;
|
||||
|
||||
private int infrequentThresholdDays;
|
||||
|
||||
|
||||
@@ -76,6 +76,9 @@ public class Settings implements Serializable {
|
||||
@Schema(description = "disable pull to refresh", required = true)
|
||||
private boolean disablePullToRefresh;
|
||||
|
||||
@Schema(description = "disable swipe gesture to open mobile menu", required = true)
|
||||
private boolean disableMobileSwipe;
|
||||
|
||||
@Schema(description = "threshold in days for the infrequent view", required = true)
|
||||
private int infrequentThresholdDays;
|
||||
|
||||
|
||||
@@ -132,6 +132,7 @@ public class UserREST {
|
||||
s.setUnreadCountTitle(settings.isUnreadCountTitle());
|
||||
s.setUnreadCountFavicon(settings.isUnreadCountFavicon());
|
||||
s.setDisablePullToRefresh(settings.isDisablePullToRefresh());
|
||||
s.setDisableMobileSwipe(settings.isDisableMobileSwipe());
|
||||
s.setPrimaryColor(settings.getPrimaryColor());
|
||||
s.setInfrequentThresholdDays(settings.getInfrequentThresholdDays());
|
||||
|
||||
@@ -169,6 +170,7 @@ public class UserREST {
|
||||
s.setUnreadCountTitle(false);
|
||||
s.setUnreadCountFavicon(true);
|
||||
s.setDisablePullToRefresh(false);
|
||||
s.setDisableMobileSwipe(false);
|
||||
s.setInfrequentThresholdDays(7);
|
||||
}
|
||||
return s;
|
||||
@@ -206,6 +208,7 @@ public class UserREST {
|
||||
s.setUnreadCountTitle(settings.isUnreadCountTitle());
|
||||
s.setUnreadCountFavicon(settings.isUnreadCountFavicon());
|
||||
s.setDisablePullToRefresh(settings.isDisablePullToRefresh());
|
||||
s.setDisableMobileSwipe(settings.isDisableMobileSwipe());
|
||||
s.setPrimaryColor(settings.getPrimaryColor());
|
||||
s.setInfrequentThresholdDays(settings.getInfrequentThresholdDays());
|
||||
|
||||
|
||||
@@ -11,4 +11,12 @@
|
||||
</addColumn>
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="add-disable-mobile-swipe" author="athou">
|
||||
<addColumn tableName="USERSETTINGS">
|
||||
<column name="disableMobileSwipe" type="BOOLEAN" valueBoolean="false">
|
||||
<constraints nullable="false" />
|
||||
</column>
|
||||
</addColumn>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
||||
@@ -38,6 +38,6 @@
|
||||
<include file="changelogs/db.changelog-5.11.xml" />
|
||||
<include file="changelogs/db.changelog-5.12.xml" />
|
||||
<include file="changelogs/db.changelog-7.0.xml" />
|
||||
<include file="changelogs/db.changelog-7.1.xml" />
|
||||
<include file="changelogs/db.changelog-gmfork.xml" />
|
||||
|
||||
</databaseChangeLog>
|
||||
Reference in New Issue
Block a user