Drop unused code since migration to navigation components

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-08-23 20:11:52 +05:30
parent d35d694564
commit 8be0ea740c
8 changed files with 6 additions and 115 deletions

View File

@@ -250,7 +250,6 @@ class NotificationService : Service() {
}
Status.PAUSED -> {
val pauseString = getString(R.string.download_paused)
progressBigText.bigText(
getString(
R.string.download_paused,

View File

@@ -23,10 +23,8 @@ import android.content.Context
import android.util.AttributeSet
import android.widget.RelativeLayout
import coil.load
import com.airbnb.epoxy.CallbackProp
import com.airbnb.epoxy.ModelProp
import com.airbnb.epoxy.ModelView
import com.airbnb.epoxy.OnViewRecycled
import com.aurora.gplayapi.data.models.details.Badge
import com.aurora.store.R
import com.aurora.store.databinding.ViewBadgeBinding
@@ -77,13 +75,4 @@ class BadgeView : RelativeLayout {
B.img.load(it.url)
}
}
@CallbackProp
fun click(onClickListener: OnClickListener?) {
}
@OnViewRecycled
fun clear() {
}
}

View File

@@ -24,10 +24,8 @@ import android.util.AttributeSet
import android.widget.RelativeLayout
import androidx.core.text.HtmlCompat
import coil.load
import com.airbnb.epoxy.CallbackProp
import com.airbnb.epoxy.ModelProp
import com.airbnb.epoxy.ModelView
import com.airbnb.epoxy.OnViewRecycled
import com.aurora.gplayapi.data.models.details.Badge
import com.aurora.store.R
import com.aurora.store.databinding.ViewMoreBadgeBinding
@@ -86,13 +84,4 @@ class MoreBadgeView : RelativeLayout {
}
}
}
@CallbackProp
fun click(onClickListener: OnClickListener?) {
}
@OnViewRecycled
fun clear() {
}
}

View File

@@ -124,7 +124,7 @@ class AccentFragment : BaseFragment() {
}
private fun updateAccent(accentId: Int) {
applyTheme(themeId, false)
applyTheme(themeId)
save(PREFERENCE_THEME_ACCENT, accentId)
}

View File

@@ -110,7 +110,7 @@ class ThemeFragment : BaseFragment() {
}
private fun update(themeId: Int) {
applyTheme(themeId, false)
applyTheme(themeId)
save(PREFERENCE_THEME_TYPE, themeId)
}

View File

@@ -71,7 +71,7 @@ class UIPreference : PreferenceFragmentCompat() {
val themeId = Integer.parseInt(newValue.toString())
save(Preferences.PREFERENCE_THEME_TYPE, themeId)
applyTheme(themeId, shouldApplyTransition = false)
applyTheme(themeId)
true
}
}
@@ -86,7 +86,7 @@ class UIPreference : PreferenceFragmentCompat() {
val accentId = Integer.parseInt(newValue.toString())
save(Preferences.PREFERENCE_THEME_ACCENT, accentId)
applyTheme(themeId, shouldApplyTransition = false)
applyTheme(themeId)
true
}
}