Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PavloNetrebchuk committed Oct 26, 2023
1 parent a324bf6 commit e16b4b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions core/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<!-- Status bar color. -->
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
<item name="android:navigationBarColor">@android:color/transparent</item>
</style>

<style name="Theme.OpenEdX.NoActionBar">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import androidx.compose.runtime.getValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.alpha
import androidx.compose.ui.draw.rotate
import androidx.compose.ui.geometry.CornerRadius
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.geometry.Size
Expand Down Expand Up @@ -183,9 +182,7 @@ fun PrevButton(
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.Center
) {
val rotate = prevButtonAnimationFactor * -90f + 90f
Icon(
modifier = Modifier.rotate(rotate),
painter = painterResource(id = org.openedx.core.R.drawable.core_ic_back),
contentDescription = null,
tint = MaterialTheme.appColors.primary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ private fun WhatsNewScreenPortrait(
}

NavigationUnitsButtons(
hasPrevPage = pagerState.canScrollBackward,
hasPrevPage = pagerState.canScrollBackward && pagerState.currentPage != 0,
hasNextPage = pagerState.canScrollForward,
onPrevClick = remember {
{
Expand Down Expand Up @@ -379,7 +379,7 @@ private fun WhatsNewScreenLandscape(
}

NavigationUnitsButtons(
hasPrevPage = pagerState.canScrollBackward,
hasPrevPage = pagerState.canScrollBackward && pagerState.currentPage != 0,
hasNextPage = pagerState.canScrollForward,
onPrevClick = remember {
{
Expand Down

0 comments on commit e16b4b1

Please sign in to comment.