diff --git a/app/src/main/java/org/kiwix/kiwixmobile/wifi_hotspot/HotspotService.java b/app/src/main/java/org/kiwix/kiwixmobile/wifi_hotspot/HotspotService.java index 4d83c74b1..e6e7083ce 100644 --- a/app/src/main/java/org/kiwix/kiwixmobile/wifi_hotspot/HotspotService.java +++ b/app/src/main/java/org/kiwix/kiwixmobile/wifi_hotspot/HotspotService.java @@ -123,7 +123,8 @@ public class HotspotService extends Service { private Notification buildForegroundNotification(String status) { Log.v(TAG, "Building notification " + status); builder = new NotificationCompat.Builder(this); - builder.setContentTitle("Kiwix Hotspot").setContentText(status); + builder.setContentTitle(getString(R.string.hotspot_notification_content_title)) + .setContentText(status); Intent targetIntent = new Intent(this, ZimHostActivity.class); targetIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); PendingIntent contentIntent = @@ -167,7 +168,7 @@ public class HotspotService extends Service { NotificationChannel hotspotServiceChannel = new NotificationChannel( Constants.HOTSPOT_SERVICE_CHANNEL_ID, getString(R.string.hotspot_service_channel_name), NotificationManager.IMPORTANCE_DEFAULT); - hotspotServiceChannel.setDescription("Sample hotspot description"); + hotspotServiceChannel.setDescription(getString(R.string.hotspot_channel_description)); hotspotServiceChannel.setSound(null, null); builder.setChannelId(Constants.HOTSPOT_SERVICE_CHANNEL_ID); notificationManager.createNotificationChannel(hotspotServiceChannel); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 64705c336..749496b8a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -50,6 +50,8 @@ Turn on your WIFI hotspot In order for this feature to work you need to first turn on your WIFI hotspot manually. YES, I’VE TURNED IT ON + Updates about the state of your hotspot/server. + Kiwix Hotspot http://000.000.000.000 Start server Stop server