File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
app/src/main/java/com/ismartcoding/plain Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package com.ismartcoding.plain.enums
33import android.content.Context
44import com.ismartcoding.lib.isRPlus
55import com.ismartcoding.plain.BuildConfig
6- import com.ismartcoding.plain.TempData
76import com.ismartcoding.plain.data.DFeaturePermission
87import com.ismartcoding.plain.features.Permission
98import com.ismartcoding.plain.features.Permissions
@@ -20,20 +19,20 @@ enum class AppFeatureType {
2019 MEDIA_TRASH ;
2120
2221 fun has (): Boolean {
23- when (this ) {
22+ return when (this ) {
2423 APPS , SOCIAL , NOTIFICATIONS -> {
25- return BuildConfig .CHANNEL != AppChannelType .GOOGLE .name
24+ BuildConfig .CHANNEL != AppChannelType .GOOGLE .name
2625 }
2726
2827 MEDIA_TRASH -> {
29- return isRPlus() // Android 11+
28+ isRPlus() // Android 11+
3029 }
3130
3231 CHECK_UPDATES -> {
33- return BuildConfig .CHANNEL == AppChannelType .GITHUB .name
32+ BuildConfig .CHANNEL == AppChannelType .GITHUB .name
3433 }
3534
36- else -> return true
35+ else -> true
3736 }
3837 }
3938
Original file line number Diff line number Diff line change @@ -410,6 +410,8 @@ object HttpModule {
410410 call.response.header(" Content-Disposition" , " inline;filename=\" ${fileName} \" ;filename*=utf-8''\" ${fileName} \" " )
411411 }
412412
413+ call.response.header(" Access-Control-Expose-Headers" , " Content-Disposition" )
414+
413415 if (path.isImageFast()) {
414416 val imageType = ImageHelper .getImageType(path)
415417 if (imageType.isApplicableAnimated() || imageType == ImageType .SVG ) {
You can’t perform that action at this time.
0 commit comments