Browse Source

Rename Android app to vibechat

master
evgeny 1 day ago
parent
commit
db3cacd33e
  1. 2
      tools/chatgui-android/app/src/main/AndroidManifest.xml
  2. 2
      tools/chatgui-android/app/src/main/java/com/utun/chat/data/TelecomCallManager.kt
  3. 6
      tools/chatgui-android/app/src/main/java/com/utun/chat/headless/HeadlessService.kt
  4. 2
      tools/chatgui-android/app/src/main/java/com/utun/chat/ui/screens/ChannelListScreen.kt

2
tools/chatgui-android/app/src/main/AndroidManifest.xml

@ -27,7 +27,7 @@
android:allowBackup="true" android:allowBackup="true"
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher"
android:label="uTun Chat" android:label="vibechat"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/Theme.UTun"> android:theme="@style/Theme.UTun">

2
tools/chatgui-android/app/src/main/java/com/utun/chat/data/TelecomCallManager.kt

@ -64,7 +64,7 @@ object TelecomCallManager {
/* registerPhoneAccount идемпотентен (перезапись по handle) и для self-managed /* registerPhoneAccount идемпотентен (перезапись по handle) и для self-managed
* аккаунта требует только MANAGE_OWN_CALLS. getPhoneAccount() здесь не зовём — * аккаунта требует только MANAGE_OWN_CALLS. getPhoneAccount() здесь не зовём —
* он на Android 14+ требует READ_PHONE_NUMBERS, которого у нас нет. */ * он на Android 14+ требует READ_PHONE_NUMBERS, которого у нас нет. */
val account = PhoneAccount.builder(handle, "uTun Chat") val account = PhoneAccount.builder(handle, "vibechat")
.setCapabilities(PhoneAccount.CAPABILITY_SELF_MANAGED) .setCapabilities(PhoneAccount.CAPABILITY_SELF_MANAGED)
.build() .build()
tm.registerPhoneAccount(account) tm.registerPhoneAccount(account)

6
tools/chatgui-android/app/src/main/java/com/utun/chat/headless/HeadlessService.kt

@ -25,7 +25,7 @@ class HeadlessService : Service() {
PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT) PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT)
val notification = NotificationCompat.Builder(this, "utun_channel") val notification = NotificationCompat.Builder(this, "utun_channel")
.setContentTitle("uTun Chat") .setContentTitle("vibechat")
.setContentText("Service running...") .setContentText("Service running...")
.setSmallIcon(android.R.drawable.ic_dialog_info) .setSmallIcon(android.R.drawable.ic_dialog_info)
.setContentIntent(pendingIntent) .setContentIntent(pendingIntent)
@ -69,9 +69,9 @@ class HeadlessService : Service() {
private fun createNotificationChannel() { private fun createNotificationChannel() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
val channel = NotificationChannel( val channel = NotificationChannel(
"utun_channel", "uTun Chat", "utun_channel", "vibechat",
NotificationManager.IMPORTANCE_LOW NotificationManager.IMPORTANCE_LOW
).apply { description = "uTun Chat background service" } ).apply { description = "vibechat background service" }
getSystemService(NotificationManager::class.java).createNotificationChannel(channel) getSystemService(NotificationManager::class.java).createNotificationChannel(channel)
} }
} }

2
tools/chatgui-android/app/src/main/java/com/utun/chat/ui/screens/ChannelListScreen.kt

@ -55,7 +55,7 @@ fun ChannelListScreen(
Scaffold( Scaffold(
topBar = { topBar = {
TopAppBar( TopAppBar(
title = { Text("uTun Chat") }, title = { Text("vibechat") },
actions = { actions = {
Box( Box(
Modifier.size(10.dp) Modifier.size(10.dp)

Loading…
Cancel
Save