File tree Expand file tree Collapse file tree
app/src/main/java/com/geode/launcher Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ import com.geode.launcher.utils.Constants
9292import com.geode.launcher.utils.GamePackageUtils
9393import com.geode.launcher.utils.LaunchUtils
9494import com.geode.launcher.utils.PreferenceUtils
95- import com.geode.launcher.utils.checkIconDate
9695import kotlinx.coroutines.CancellationException
9796import kotlinx.coroutines.launch
9897import java.net.ConnectException
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ import com.geode.launcher.utils.ApplicationIcon
6060import com.geode.launcher.utils.ApplicationIconDetails
6161import com.geode.launcher.utils.IconUtils
6262import com.geode.launcher.utils.adaptiveIconPainterResource
63- import com.geode.launcher.utils.checkIconDate
6463
6564class ApplicationIconActivity : ComponentActivity () {
6665 override fun onCreate (savedInstanceState : Bundle ? ) {
@@ -232,17 +231,13 @@ fun ApplicationIconScreen(
232231 ) {
233232 val selectedIcon by PreferenceUtils .useStringPreference(PreferenceUtils .Key .SELECTED_ICON )
234233
235- val aprilFools = remember { checkIconDate() }
236-
237234 Column (Modifier
238235 .padding(horizontal = 12 .dp)
239236 .clip(RoundedCornerShape (16 .dp))
240237 ) {
241238 ApplicationIcon .entries.forEach {
242239 val iconData = IconUtils .getIconDetails(it)
243- if (! iconData.checkDate || aprilFools) {
244- IconCard (iconData, selectedIcon == iconData.id)
245- }
240+ IconCard (iconData, selectedIcon == iconData.id)
246241 }
247242
248243 }
Original file line number Diff line number Diff line change @@ -70,17 +70,11 @@ enum class ApplicationIcon {
7070 }
7171}
7272
73- fun checkIconDate (): Boolean {
74- val currentDate = Clock .System .todayIn(TimeZone .currentSystemDefault())
75- return currentDate.month == Month .APRIL && currentDate.day <= 7
76- }
77-
7873data class ApplicationIconDetails (
7974 val id : String ,
8075 val component : String ,
8176 @param:DrawableRes val iconId : Int ,
8277 @param:StringRes val nameId : Int ,
83- val checkDate : Boolean = false ,
8478)
8579
8680object IconUtils {
@@ -114,7 +108,6 @@ object IconUtils {
114108 component = " MainActivitySapphire" ,
115109 iconId = R .mipmap.ic_launcher_sapphire,
116110 nameId = R .string.application_icon_sapphire,
117- checkDate = true
118111 )
119112 }
120113}
You can’t perform that action at this time.
0 commit comments