File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed
src/main/java/org/thoughtcrime/securesms Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -82,30 +82,23 @@ private static int getPreselection(int timespan) {
82
82
if (timespan == 0 ) {
83
83
return 0 ; // off
84
84
}
85
-
86
85
// Choose timespan close to the current one out of available options.
87
- if (timespan < TimeUnit .MINUTES .toSeconds (5 )) {
88
- return 1 ; // 1 minute
89
- }
90
- if (timespan < TimeUnit .MINUTES .toSeconds (30 )) {
91
- return 2 ; // 5 minutes
92
- }
93
86
if (timespan < TimeUnit .HOURS .toSeconds (1 )) {
94
- return 3 ; // 30 minutes
87
+ return 1 ; // 5 minutes
95
88
}
96
89
if (timespan < TimeUnit .DAYS .toSeconds (1 )) {
97
- return 4 ; // 1 hour
90
+ return 2 ; // 1 hour
98
91
}
99
92
if (timespan < TimeUnit .DAYS .toSeconds (7 )) {
100
- return 5 ; // 1 day
93
+ return 3 ; // 1 day
101
94
}
102
95
if (timespan < TimeUnit .DAYS .toSeconds (35 )) {
103
- return 6 ; // 1 week
96
+ return 4 ; // 1 week
104
97
}
105
98
if (timespan < TimeUnit .DAYS .toSeconds (365 )) {
106
- return 7 ; // 5 weeks
99
+ return 5 ; // 5 weeks
107
100
}
108
- return 8 ; // 1 year
101
+ return 6 ; // 1 year
109
102
}
110
103
111
104
}
You can’t perform that action at this time.
0 commit comments