Skip to content

Commit 25d76e2

Browse files
committed
Code fluff
1 parent 8217ce2 commit 25d76e2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/src/main/AndroidManifest.xml

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
android:name="eu.darken.octi.main.ui.MainActivity"
1818
android:exported="true"
1919
android:launchMode="singleTask"
20-
android:label="@string/app_name"
2120
android:theme="@style/AppThemeSplash">
2221
<intent-filter>
2322
<action android:name="android.intent.action.MAIN" />

app/src/main/java/eu/darken/octi/common/ContextExtensions.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import android.util.TypedValue
88
import androidx.annotation.AttrRes
99
import androidx.annotation.ColorInt
1010
import androidx.annotation.ColorRes
11-
import androidx.annotation.StringRes
11+
import androidx.annotation.PluralsRes
1212
import androidx.core.content.ContextCompat
1313
import androidx.fragment.app.Fragment
1414

@@ -48,7 +48,7 @@ fun Context.spToPx(sp: Float): Float {
4848
return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, sp, resources.displayMetrics)
4949
}
5050

51-
fun Context.getQuantityString2(@StringRes stringRes: Int, quantity: Int) = resources.getQuantityString(
51+
fun Context.getQuantityString2(@PluralsRes stringRes: Int, quantity: Int) = resources.getQuantityString(
5252
stringRes,
5353
quantity,
5454
quantity

0 commit comments

Comments
 (0)