Skip to content

Commit

Permalink
refactor #605 Remove useless annotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
toastkidjp committed Jul 1, 2022
1 parent ec95eb5 commit b251624
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
*/
package jp.toastkid.lib.view

import android.os.Build
import android.view.Window
import androidx.annotation.RequiresApi
import androidx.core.graphics.ColorUtils
import jp.toastkid.lib.preference.ColorPair

Expand All @@ -18,7 +16,6 @@ import jp.toastkid.lib.preference.ColorPair
*/
class WindowOptionColorApplier {

@RequiresApi(Build.VERSION_CODES.LOLLIPOP)
operator fun invoke(window: Window, colorPair: ColorPair) {
val color = ColorUtils.setAlphaComponent(colorPair.bgColor(), 255)
window.statusBarColor = color
Expand Down

0 comments on commit b251624

Please sign in to comment.