Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
itning committed Mar 3, 2019
1 parent 68f5a8a commit fa97d2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
applicationId "top.itning.yunshuclassschedule"
minSdkVersion 21
targetSdkVersion 28
versionCode 59
versionName "2.5.3"
versionCode 60
versionName "2.5.4"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ class CommonService : Service(), SharedPreferences.OnSharedPreferenceChangeListe
}
break
}
if (i > 50) {
i = 1
}
Log.d(TAG, "Set week num $i")
if (defaultSharedPreferences.edit().putString(NOW_WEEK_NUM, i.toString()).commit()) {
App.sharedPreferences.edit().putLong(ConstantPool.Str.NEXT_WEEK_OF_MONDAY.get(), lastTimeMillis).apply()
Expand Down

0 comments on commit fa97d2a

Please sign in to comment.