diff options
Diffstat (limited to 'app/src/main/java/org/pacien/tincapp/context')
3 files changed, 7 insertions, 7 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/context/App.kt b/app/src/main/java/org/pacien/tincapp/context/App.kt index 359cd23..6f28bd0 100644 --- a/app/src/main/java/org/pacien/tincapp/context/App.kt +++ b/app/src/main/java/org/pacien/tincapp/context/App.kt | |||
@@ -67,7 +67,7 @@ class App : Application() { | |||
67 | 67 | ||
68 | fun openURL(url: String) { | 68 | fun openURL(url: String) { |
69 | val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url)) | 69 | val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url)) |
70 | val chooser = Intent.createChooser(intent, getResources().getString(R.string.action_open_web_page)) | 70 | val chooser = Intent.createChooser(intent, getResources().getString(R.string.generic_action_open_web_page)) |
71 | appContext?.startActivity(chooser.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)) | 71 | appContext?.startActivity(chooser.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)) |
72 | } | 72 | } |
73 | 73 | ||
@@ -78,7 +78,7 @@ class App : Application() { | |||
78 | .apply { if (body != null) putExtra(Intent.EXTRA_TEXT, body) } | 78 | .apply { if (body != null) putExtra(Intent.EXTRA_TEXT, body) } |
79 | .apply { if (attachment != null) putExtra(Intent.EXTRA_STREAM, Uri.fromFile(attachment)) } | 79 | .apply { if (attachment != null) putExtra(Intent.EXTRA_STREAM, Uri.fromFile(attachment)) } |
80 | 80 | ||
81 | val chooser = Intent.createChooser(intent, getResources().getString(R.string.action_send_email)) | 81 | val chooser = Intent.createChooser(intent, getResources().getString(R.string.crash_modal_action_send_email)) |
82 | appContext?.startActivity(chooser.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)) | 82 | appContext?.startActivity(chooser.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)) |
83 | } | 83 | } |
84 | } | 84 | } |
diff --git a/app/src/main/java/org/pacien/tincapp/context/AppInfo.kt b/app/src/main/java/org/pacien/tincapp/context/AppInfo.kt index e0d49f1..a412fa9 100644 --- a/app/src/main/java/org/pacien/tincapp/context/AppInfo.kt +++ b/app/src/main/java/org/pacien/tincapp/context/AppInfo.kt | |||
@@ -27,17 +27,17 @@ import org.pacien.tincapp.R | |||
27 | */ | 27 | */ |
28 | object AppInfo { | 28 | object AppInfo { |
29 | private fun appVersion(): String = App.getResources().getString( | 29 | private fun appVersion(): String = App.getResources().getString( |
30 | R.string.info_version_format, | 30 | R.string.about_app_version_format, |
31 | BuildConfig.VERSION_NAME, | 31 | BuildConfig.VERSION_NAME, |
32 | BuildConfig.BUILD_TYPE) | 32 | BuildConfig.BUILD_TYPE) |
33 | 33 | ||
34 | private fun androidVersion(): String = App.getResources().getString( | 34 | private fun androidVersion(): String = App.getResources().getString( |
35 | R.string.info_running_on_format, | 35 | R.string.about_app_running_on_format, |
36 | Build.VERSION.CODENAME, | 36 | Build.VERSION.CODENAME, |
37 | Build.VERSION.RELEASE) | 37 | Build.VERSION.RELEASE) |
38 | 38 | ||
39 | private fun supportedABIs(): String = App.getResources().getString( | 39 | private fun supportedABIs(): String = App.getResources().getString( |
40 | R.string.info_supported_abis_format, | 40 | R.string.about_app_supported_abis_format, |
41 | Build.SUPPORTED_ABIS.joinToString(",")) | 41 | Build.SUPPORTED_ABIS.joinToString(",")) |
42 | 42 | ||
43 | fun all(): String = listOf( | 43 | fun all(): String = listOf( |
diff --git a/app/src/main/java/org/pacien/tincapp/context/AppNotificationManager.kt b/app/src/main/java/org/pacien/tincapp/context/AppNotificationManager.kt index d543210..bdbc8be 100644 --- a/app/src/main/java/org/pacien/tincapp/context/AppNotificationManager.kt +++ b/app/src/main/java/org/pacien/tincapp/context/AppNotificationManager.kt | |||
@@ -64,7 +64,7 @@ class AppNotificationManager(private val context: Context) { | |||
64 | 64 | ||
65 | @RequiresApi(Build.VERSION_CODES.O) | 65 | @RequiresApi(Build.VERSION_CODES.O) |
66 | private fun registerChannel() { | 66 | private fun registerChannel() { |
67 | val name = context.getString(R.string.notification_channel_error_name) | 67 | val name = context.getString(R.string.notification_error_channel_name) |
68 | val importance = NotificationManager.IMPORTANCE_HIGH | 68 | val importance = NotificationManager.IMPORTANCE_HIGH |
69 | val channel = NotificationChannel(CHANNEL_ID, name, importance) | 69 | val channel = NotificationChannel(CHANNEL_ID, name, importance) |
70 | val notificationManager = context.getSystemService(NotificationManager::class.java) | 70 | val notificationManager = context.getSystemService(NotificationManager::class.java) |
@@ -79,6 +79,6 @@ class AppNotificationManager(private val context: Context) { | |||
79 | private fun NotificationCompat.Builder.setManualLink(manualLink: String) = apply { | 79 | private fun NotificationCompat.Builder.setManualLink(manualLink: String) = apply { |
80 | val intent = Intent(Intent.ACTION_VIEW, Uri.parse(manualLink)) | 80 | val intent = Intent(Intent.ACTION_VIEW, Uri.parse(manualLink)) |
81 | val pendingIntent = PendingIntent.getActivity(context, 0, intent, 0) | 81 | val pendingIntent = PendingIntent.getActivity(context, 0, intent, 0) |
82 | addAction(R.drawable.ic_help_primary_24dp, context.getString(R.string.action_open_manual), pendingIntent) | 82 | addAction(R.drawable.ic_help_primary_24dp, context.getString(R.string.notification_error_action_open_manual), pendingIntent) |
83 | } | 83 | } |
84 | } | 84 | } |