From fdee056ade5186a9baa7a30842e487048724942c Mon Sep 17 00:00:00 2001 From: h4h13 Date: Sun, 1 Mar 2020 18:58:51 +0530 Subject: [PATCH] Added null safety --- .../base/AbsLibraryPagerRecyclerViewCustomGridSizeFragment.kt | 4 ++-- .../retromusic/fragments/player/tiny/TinyPlayerFragment.kt | 4 ++-- .../fragments/settings/NowPlayingSettingsFragment.kt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/code/name/monkey/retromusic/fragments/base/AbsLibraryPagerRecyclerViewCustomGridSizeFragment.kt b/app/src/main/java/code/name/monkey/retromusic/fragments/base/AbsLibraryPagerRecyclerViewCustomGridSizeFragment.kt index 8b078163..a936c4a3 100644 --- a/app/src/main/java/code/name/monkey/retromusic/fragments/base/AbsLibraryPagerRecyclerViewCustomGridSizeFragment.kt +++ b/app/src/main/java/code/name/monkey/retromusic/fragments/base/AbsLibraryPagerRecyclerViewCustomGridSizeFragment.kt @@ -39,8 +39,8 @@ abstract class AbsLibraryPagerRecyclerViewCustomGridSizeFragment if (newValue as Boolean && !App.isProVersion()) { - showProToastAndNavigate(activity!!.getString(R.string.pref_title_toggle_carousel_effect)) + showProToastAndNavigate(getString(R.string.pref_title_toggle_carousel_effect)) return@setOnPreferenceChangeListener false } return@setOnPreferenceChangeListener true