-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from Nexters/feature/image-viewer
인증 & 스토리에서 이미지 뷰어 화면 개선
- Loading branch information
Showing
6 changed files
with
136 additions
and
40 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...gnsystem/src/main/java/com/goalpanzi/mission_mate/core/designsystem/util/StatusBarUtil.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.goalpanzi.mission_mate.core.designsystem.util | ||
|
||
import android.app.Activity | ||
import android.content.Context | ||
import androidx.core.view.WindowCompat | ||
|
||
fun isLightStatusBars(context: Activity): Boolean { | ||
val window = context.window | ||
val insetsController = WindowCompat.getInsetsController(window, window.decorView) | ||
return insetsController.isAppearanceLightStatusBars | ||
} | ||
|
||
fun setStatusBar(context: Context, isLight: Boolean) { | ||
if (context is Activity) { | ||
val window = context.window | ||
val insetsController = WindowCompat.getInsetsController(window, window.decorView) | ||
if (insetsController.isAppearanceLightStatusBars != isLight) | ||
insetsController.isAppearanceLightStatusBars = isLight | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.