Remove X-sessions stat from notifications
* As we can do X-sessions in android userland then it was added by NeoTerm, but we do things under chroot so we cant take advantage with Xorg here. * Maybe with wayland with node mountpoints but thats for the future ( as i got some sessions with wayland under chroot natively before, it was hacky and pretty broken but it worked ).
This commit is contained in:
parent
8eb59e8910
commit
1b23b1bc05
@ -141,7 +141,7 @@ class NeoTermService : Service() {
|
||||
|
||||
val sessionCount = mTerminalSessions.size
|
||||
val xSessionCount = mXSessions.size
|
||||
var contentText = getString(R.string.service_status_text, sessionCount, xSessionCount)
|
||||
var contentText = getString(R.string.service_status_text, sessionCount)
|
||||
|
||||
val lockAcquired = mWakeLock != null
|
||||
if (lockAcquired) contentText += getString(R.string.service_lock_acquired)
|
||||
@ -181,8 +181,8 @@ class NeoTermService : Service() {
|
||||
private fun createNotificationChannel() {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) return
|
||||
|
||||
val channel = NotificationChannel(DEFAULT_CHANNEL_ID, "NeoTerm", NotificationManager.IMPORTANCE_LOW)
|
||||
channel.description = "NeoTerm notifications"
|
||||
val channel = NotificationChannel(DEFAULT_CHANNEL_ID, "NetHunter", NotificationManager.IMPORTANCE_LOW)
|
||||
channel.description = "NetHunter notifications"
|
||||
val manager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
||||
manager.createNotificationChannel(channel)
|
||||
}
|
||||
|
@ -10,7 +10,7 @@
|
||||
<string name="new_session_more">New Session…</string>
|
||||
<string name="new_system_session">New System Shell</string>
|
||||
<string name="new_root_session">New Root Shell</string>
|
||||
<string name="service_status_text">%d session(s), %d X session(s)</string>
|
||||
<string name="service_status_text">%d session(s)</string>
|
||||
<string name="service_lock_acquired">(Wake Locked)</string>
|
||||
<string name="service_acquire_lock">Acquire Lock</string>
|
||||
<string name="service_release_lock">Release Lock</string>
|
||||
|
Loading…
Reference in New Issue
Block a user