File tree Expand file tree Collapse file tree
java/cz/martykan/forecastie Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -183,6 +183,18 @@ else if(interval.equals("1")) {
183183 AlarmManager .INTERVAL_HOUR ,
184184 recurringRefresh );
185185 }
186+ else if (interval .equals ("2" )) {
187+ alarms .setInexactRepeating (AlarmManager .ELAPSED_REALTIME_WAKEUP ,
188+ SystemClock .elapsedRealtime () + 7200000 ,
189+ 7200000 ,
190+ recurringRefresh );
191+ }
192+ else if (interval .equals ("6" )) {
193+ alarms .setInexactRepeating (AlarmManager .ELAPSED_REALTIME_WAKEUP ,
194+ SystemClock .elapsedRealtime () + 21600000 ,
195+ 21600000 ,
196+ recurringRefresh );
197+ }
186198 else if (interval .equals ("12" )) {
187199 alarms .setInexactRepeating (AlarmManager .ELAPSED_REALTIME_WAKEUP ,
188200 SystemClock .elapsedRealtime () + AlarmManager .INTERVAL_HALF_DAY ,
Original file line number Diff line number Diff line change 8383 <item name =" 15" >15 min</item >
8484 <item name =" 30" >30 min</item >
8585 <item name =" 1" >1 h</item >
86+ <item name =" 2" >2 h</item >
87+ <item name =" 6" >6 h</item >
8688 <item name =" 12" >12 h</item >
8789 <item name =" 24" >24 h</item >
8890 </string-array >
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ buildscript {
55 jcenter()
66 }
77 dependencies {
8- classpath ' com.android.tools.build:gradle:1.5 .0'
8+ classpath ' com.android.tools.build:gradle:2.1 .0'
99
1010 // NOTE: Do not place your application dependencies here; they belong
1111 // in the individual module build.gradle files
Original file line number Diff line number Diff line change 1- # Wed Oct 21 11:34:03 PDT 2015
1+ # Tue May 31 05:35:56 EDT 2016
22distributionBase =GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-2.8 -all.zip
6+ distributionUrl =https\://services.gradle.org/distributions/gradle-2.10 -all.zip
You can’t perform that action at this time.
0 commit comments