diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2023-03-14 05:03:51 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2023-06-03 09:05:43 +0200 |
commit | 37cc94526b746a7f6be046935554c0fdb573ff9c (patch) | |
tree | fb0eb05e6e1ff78db15cfade5a942f70be577b92 /src | |
parent | android: New settings fragment animations (diff) | |
download | yuzu-37cc94526b746a7f6be046935554c0fdb573ff9c.tar yuzu-37cc94526b746a7f6be046935554c0fdb573ff9c.tar.gz yuzu-37cc94526b746a7f6be046935554c0fdb573ff9c.tar.bz2 yuzu-37cc94526b746a7f6be046935554c0fdb573ff9c.tar.lz yuzu-37cc94526b746a7f6be046935554c0fdb573ff9c.tar.xz yuzu-37cc94526b746a7f6be046935554c0fdb573ff9c.tar.zst yuzu-37cc94526b746a7f6be046935554c0fdb573ff9c.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/platform/PlatformGamesFragment.kt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/platform/PlatformGamesFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/platform/PlatformGamesFragment.kt index 42b61a81a..73929e186 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/platform/PlatformGamesFragment.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/platform/PlatformGamesFragment.kt @@ -17,10 +17,10 @@ import androidx.fragment.app.Fragment import androidx.recyclerview.widget.GridLayoutManager import androidx.recyclerview.widget.RecyclerView import androidx.swiperefreshlayout.widget.SwipeRefreshLayout +import com.google.android.material.color.MaterialColors import org.yuzu.yuzu_emu.R import org.yuzu.yuzu_emu.YuzuApplication import org.yuzu.yuzu_emu.adapters.GameAdapter -import org.yuzu.yuzu_emu.utils.InsetsHelper class PlatformGamesFragment : Fragment(), PlatformGamesView { private val presenter = PlatformGamesPresenter(this) @@ -70,6 +70,14 @@ class PlatformGamesFragment : Fragment(), PlatformGamesView { pullToRefresh.isRefreshing = false } + // Set theme color to the refresh animation's background + pullToRefresh.setProgressBackgroundColorSchemeColor( + MaterialColors.getColor(pullToRefresh, R.attr.colorPrimary) + ) + pullToRefresh.setColorSchemeColors( + MaterialColors.getColor(pullToRefresh, R.attr.colorOnPrimary) + ) + setInsets() } |