Skip to content

Commit

Permalink
Reflect status bar in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Hafizzle committed Sep 22, 2023
1 parent 8014106 commit 05f9dce
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import com.habitrpg.android.habitica.models.user.User
import com.habitrpg.android.habitica.ui.fragments.setup.AvatarSetupFragment
import com.habitrpg.android.habitica.ui.fragments.setup.TaskSetupFragment
import com.habitrpg.android.habitica.ui.fragments.setup.WelcomeFragment
import com.habitrpg.common.habitica.extensions.isUsingNightModeResources
import com.habitrpg.common.habitica.helpers.ExceptionHandler
import com.habitrpg.common.habitica.helpers.launchCatching
import com.viewpagerindicator.IconPagerAdapter
Expand Down Expand Up @@ -111,6 +112,10 @@ class SetupActivity : BaseActivity(), ViewPager.OnPageChangeListener {

binding.previousButton.setOnClickListener { previousClicked() }
binding.nextButton.setOnClickListener { nextClicked() }

if (this.isUsingNightModeResources()) {
window.statusBarColor = ContextCompat.getColor(this, R.color.black_20_alpha)
}
}

override fun onDestroy() {
Expand Down

0 comments on commit 05f9dce

Please sign in to comment.