Skip to content

Commit

Permalink
Code fluff
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rken committed Sep 2, 2024
1 parent 8217ce2 commit 25d76e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
android:name="eu.darken.octi.main.ui.MainActivity"
android:exported="true"
android:launchMode="singleTask"
android:label="@string/app_name"
android:theme="@style/AppThemeSplash">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/eu/darken/octi/common/ContextExtensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import android.util.TypedValue
import androidx.annotation.AttrRes
import androidx.annotation.ColorInt
import androidx.annotation.ColorRes
import androidx.annotation.StringRes
import androidx.annotation.PluralsRes
import androidx.core.content.ContextCompat
import androidx.fragment.app.Fragment

Expand Down Expand Up @@ -48,7 +48,7 @@ fun Context.spToPx(sp: Float): Float {
return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, sp, resources.displayMetrics)
}

fun Context.getQuantityString2(@StringRes stringRes: Int, quantity: Int) = resources.getQuantityString(
fun Context.getQuantityString2(@PluralsRes stringRes: Int, quantity: Int) = resources.getQuantityString(
stringRes,
quantity,
quantity
Expand Down

0 comments on commit 25d76e2

Please sign in to comment.