Skip to content

Commit

Permalink
Minor cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuester committed Dec 29, 2023
1 parent f177d88 commit 03fdd2f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 15 deletions.
13 changes: 1 addition & 12 deletions app/src/main/java/com/sduduzog/slimlauncher/App.kt
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
package com.sduduzog.slimlauncher

import android.app.Application
import android.content.Context
import dagger.hilt.android.HiltAndroidApp

@HiltAndroidApp
class App : Application() {
public fun getContext() : Context {
return this
}

companion object {
fun getContext(): Context {
return this.getContext()
}
}
}
class App : Application()
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ class HomeFragment : BaseFragment(), OnLaunchAppListener {
else -> DateFormat.is24HourFormat(context)
}

timeFormat = preferences.getInt(getString(R.string.prefs_settings_key_time_format), 0)
clockType = ClockType.values()[preferences.getInt(getString(R.string.prefs_settings_key_clock_type), ClockType.DIGITAL.ordinal)]
home_fragment_analog_time.setHiddenState(clockType != ClockType.ANALOG)
home_fragment_bin_time.setHiddenState(clockType != ClockType.BINARY)
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/layout/options_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_list_items"
android:stateListAnimator="@xml/animate_scale"
android:text="@string/options_fragment_choose_clock_type"
android:textAppearance="@style/TextAppearance.AppCompat"
android:textSize="@dimen/font_size_customize_options"
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<resources>
<attr name="headerTextColor" format="reference"/>
<attr name="switchTextColor" format="reference" />
<attr name="customColor" format="reference"/>
<declare-styleable name="BinaryClockView">
<attr name="bitSize" format="integer" />
<attr name="border" format="integer" />
Expand Down

0 comments on commit 03fdd2f

Please sign in to comment.