Skip to content

Commit 7a10243

Browse files
authored
ProgressRepository: Set notification of progress to ongoing type (#149)
* ProgressRepository: Set notification of progress to ongoing type * i18n: Update translation
1 parent 2278670 commit 7a10243

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

app/src/main/java/net/rpcsx/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class MainActivity : ComponentActivity() {
3333
with(getSystemService(NOTIFICATION_SERVICE) as NotificationManager) {
3434
val channel = NotificationChannel(
3535
"rpcsx-progress",
36-
"Installation progress",
36+
getString(R.string.installation_progress),
3737
NotificationManager.IMPORTANCE_DEFAULT
3838
).apply {
3939
setShowBadge(false)

app/src/main/java/net/rpcsx/ProgressRepository.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ class ProgressRepository {
9797
setCategory(NotificationCompat.CATEGORY_SERVICE)
9898
setPriority(NotificationCompat.PRIORITY_DEFAULT)
9999
setProgress(0, 0, true)
100+
setOngoing(true)
100101
setSilent(true)
101102
}
102103

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,13 @@
5757
<string name="fetching">正在提取…</string>
5858
<string name="install">安装</string>
5959
<string name="installing">正在安装…</string>
60-
<string name="please_wait">请稍后</string>
60+
<string name="please_wait">请稍候</string>
6161
<string name="select_driver">选择一个 GPU 驱动程序</string>
6262

6363
<!-- MainActivity -->
64-
<string name="failed_to_load_new_version">加载新版本失败,之前的版本已恢复</string>
64+
<string name="failed_to_load_new_version">加载新版本失败,之前的版本已恢复</string>
6565
<string name="failed_to_update_rpcsx">更新 RPCSX 失败</string>
66+
<string name="installation_progress">安装进度</string>
6667

6768
<!-- OverlayEditActivity -->
6869
<string name="ask_if_reset_button">重置 %1$s?</string>

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@
6363
<string name="select_driver">Select a GPU Driver</string>
6464

6565
<!-- MainActivity -->
66-
<string name="failed_to_load_new_version">Failed to load new version, previous version was restored</string>
66+
<string name="failed_to_load_new_version">Failed to load new version, previous version was restored.</string>
6767
<string name="failed_to_update_rpcsx">Failed to update RPCSX</string>
68+
<string name="installation_progress">Installation progress</string>
6869

6970
<!-- OverlayEditActivity -->
7071
<string name="ask_if_reset_button">Reset %1$s?</string>
@@ -94,7 +95,7 @@
9495
<string name="controls_description">Configure controller</string>
9596
<string name="custom_driver">Custom GPU Driver</string>
9697
<string name="custom_driver_description">Install alternative drivers for potentially better performance or accuracy</string>
97-
<string name="custom_driver_not_supported">Custom driver not supported</string>
98+
<string name="custom_driver_not_supported">Custom Driver Not Supported</string>
9899
<string name="custom_driver_not_supported_description">Custom driver loading isn\'t currently supported for this device.</string>
99100
<string name="download_channels">Download Channels</string>
100101
<string name="enable_haptic_feedback">Enable Haptic Feedback</string>

0 commit comments

Comments
 (0)