Allow disabling similar, related & more apps in app details page

This commit is contained in:
Rahul Kumar Patel
2021-04-04 03:57:33 +05:30
parent 2dd570dd05
commit a76638af0d
5 changed files with 15 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ object Preferences {
const val PREFERENCE_DEFAULT_SELECTED_TAB = "PREFERENCE_DEFAULT_SELECTED_TAB"
const val PREFERENCE_QUICK_EXIT = "PREFERENCE_QUICK_EXIT"
const val PREFERENCE_FOR_YOU = "PREFERENCE_FOR_YOU"
const val PREFERENCE_SIMILAR = "PREFERENCE_SIMILAR"
const val PREFERENCE_INTRO = "PREFERENCE_INTRO"
const val PREFERENCE_FILTER_GOOGLE = "PREFERENCE_FILTER_GOOGLE"

View File

@@ -363,7 +363,9 @@ class AppDetailsActivity : BaseDetailsActivity() {
inflateBetaSubscription(B.layoutDetailsBeta, app)
}
inflateAppStream(B.epoxyRecyclerStream, app)
if (Preferences.getBoolean(this, Preferences.PREFERENCE_SIMILAR)) {
inflateAppStream(B.epoxyRecyclerStream, app)
}
}
}

View File

@@ -42,6 +42,7 @@ import com.aurora.store.util.Preferences.PREFERENCE_INSECURE_ANONYMOUS
import com.aurora.store.util.Preferences.PREFERENCE_INSTALLER_ID
import com.aurora.store.util.Preferences.PREFERENCE_INTRO
import com.aurora.store.util.Preferences.PREFERENCE_QUICK_EXIT
import com.aurora.store.util.Preferences.PREFERENCE_SIMILAR
import com.aurora.store.util.Preferences.PREFERENCE_THEME_ACCENT
import com.aurora.store.util.Preferences.PREFERENCE_THEME_TYPE
import com.aurora.store.util.save
@@ -168,6 +169,7 @@ class OnboardingActivity : BaseActivity() {
save(PREFERENCE_DEFAULT_SELECTED_TAB, 0)
save(PREFERENCE_QUICK_EXIT, false)
save(PREFERENCE_FOR_YOU, true)
save(PREFERENCE_SIMILAR, true)
/*Installer*/
save(PREFERENCE_AUTO_DELETE, true)