Skip to content

Commit 3dc330c

Browse files
author
Martin Styk
committed
Fix lint errors after gradle plugin update
1 parent 7a6c8bc commit 3dc330c

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

app/src/main/java/sk/styk/martin/apkanalyzer/views/chart/ClickableMarkerView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ClickableMarkerView(context: Context, private val callback: OnMarkerClickL
3030
override fun refreshContent(e: Entry, highlight: Highlight) {
3131
e.data ?: return
3232
val appList = e.data as List<*>
33-
rootView.findViewById<TextView>(R.id.tvContent).text = String.format(context.getString(R.string.show_apps, appList.size))
33+
rootView.findViewById<TextView>(R.id.tvContent).text = context.resources.getQuantityString(R.plurals.show_apps, appList.size, appList.size)
3434

3535
rootView.setOnClickListener { callback.onMarkerClick(entry = e) }
3636

app/src/main/res/values-ja/strings.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@
9494
<string name="show_app_google_play">Google Playのリスティング</string>
9595
<string name="save_icon">保存アイコン</string>
9696
<string name="copied_to_clipboard">クリップボードにコピーされました</string>
97-
<string name="show_apps">%1$d のすべてのアプリを表示</string>
97+
<plurals name="show_apps">
98+
<item quantity="other">%1$d のすべてのアプリを表示</item>
99+
</plurals>
98100

99101
<string name="app_icon">アプリアイコン</string>
100102

app/src/main/res/values-zh-rTW/strings.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@
113113
<string name="show_app_google_play">Google Play 頁面</string>
114114
<string name="save_icon">儲存圖示</string>
115115
<string name="copied_to_clipboard">已複製到剪貼簿</string>
116-
<string name="show_apps">顯示 %1$d 個應用程式</string>
117-
116+
<plurals name="show_apps">
117+
<item quantity="other">顯示 %1$d 個應用程式</item>
118+
</plurals>
118119
<string name="app_icon">應用程式圖示</string>
119120

120121

app/src/main/res/values/strings.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,12 @@
123123
<string name="show_app_google_play">Show in Google Play</string>
124124
<string name="save_icon">Save icon</string>
125125
<string name="copied_to_clipboard">Copied to clipboard</string>
126-
<string name="show_apps">Show %1$d apps</string>
127-
126+
<plurals name="show_apps">
127+
<item quantity="one">Show %1$d app</item>
128+
<item quantity="other">Show %1$d apps</item>
129+
</plurals>
128130
<string name="app_icon">Application icon</string>
129131

130-
131132
<string name="application_name_description">The name of this application. This name is displayed to users. Internally, Android uses package name attribute as a unique identifier of application. </string>
132133
<string name="package_name_description">The name of this package. From the Android Manifest tag\'s "name" attribute. The package name serves as a unique identifier for the application. It\'s also the default name for the application process and the default task affinity of an activity.</string>
133134
<string name="process_name_description">The name of the process this application should run in. From the "process" attribute or, if not set, the same as package name.</string>

0 commit comments

Comments
 (0)