Skip to content

Commit

Permalink
[Feat]: V1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
why committed Mar 14, 2024
1 parent 49185ba commit c8da214
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 16 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ android {
applicationId = "com.xiaoyv.bangumi"
minSdk = 24
targetSdk = 34
versionCode = 5
versionName = "1.0.3"
versionCode = 6
versionName = "1.0.4"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,18 @@ class OverviewSaveBinder(private var onSaveBtnClickListener: (AdapterTypeItem, I
holder.binding.tvSave.setTextColor(ColorUtils.getColor(CommonColor.save_wish_text))
}

InterestType.TYPE_COLLECT -> {
holder.binding.tvSave.backgroundTintList =
ColorUtils.getColor(CommonColor.save_collect).tint
holder.binding.tvSave.setTextColor(ColorUtils.getColor(CommonColor.save_collect_text))
}

InterestType.TYPE_DO -> {
holder.binding.tvSave.backgroundTintList =
ColorUtils.getColor(CommonColor.save_do).tint
holder.binding.tvSave.setTextColor(ColorUtils.getColor(CommonColor.save_do_text))
}

InterestType.TYPE_COLLECT -> {
holder.binding.tvSave.backgroundTintList =
ColorUtils.getColor(CommonColor.save_collect).tint
holder.binding.tvSave.setTextColor(ColorUtils.getColor(CommonColor.save_collect_text))
}

InterestType.TYPE_ON_HOLD -> {
holder.binding.tvSave.backgroundTintList =
ColorUtils.getColor(CommonColor.save_on_hold).tint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class CommonInterceptor : Interceptor {
.addHeader("TE", "trailers")
.addHeader("Accept-Language", "zh-CN,zh;q=0.8,zh-TW;q=0.6,zh-HK;q=0.4,en;q=0.2")
.addHeader("User-Agent", userAgent)
.addHeader("Cookie", "kira=1")
.let {
if (request.header("Referer").isNullOrBlank().not() || request.isNotGet) it
else it.addHeader("Referer", request.url.toString())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ class OkHttpProgressGlideModule : AppGlideModule() {
.newBuilder()
.timeout(240)
.apply { networkInterceptors().removeIf { it is HttpLoggingInterceptor } }
.addInterceptor {
it.proceed(
it.request().newBuilder()
.addHeader("Cookie", "kira=1")
.build()
)
}
.addNetworkInterceptor(createInterceptor(DispatchingProgressListener()))
.build()
)
Expand Down
2 changes: 1 addition & 1 deletion lib-common/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

<color name="save_wish">#F09199</color>
<color name="save_wish_text">@color/ui_white</color>
<color name="save_do">#36CA36</color>
<color name="save_collect">#4897ff</color>
<color name="save_collect_alpha">#9f4897ff</color>
<color name="save_collect_text">@color/ui_white</color>
<color name="save_do">#4897ff</color>
<color name="save_do_text">@color/ui_white</color>
<color name="save_on_hold">#FF9800</color>
<color name="save_on_hold_text">@color/ui_white</color>
Expand Down

0 comments on commit c8da214

Please sign in to comment.