Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions app/src/main/java/com/nextcloud/talk/diagnosis/DiagnosisElement.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/
package com.nextcloud.talk.diagnosis

import android.app.NotificationManager
import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
Expand Down Expand Up @@ -282,4 +283,18 @@ private fun addPushCommonEntries(context: Context, data: MutableList<DiagnosisEl
value = boolStr(NotificationUtils.isMessagesNotificationChannelEnabled(context))
)
)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
val canUseFullScreenIntent = context.getSystemService(NotificationManager::class.java)
.canUseFullScreenIntent()
data.add(
DiagnosisElement.DiagnosisEntry(
key = context.getString(R.string.nc_diagnosis_full_screen_intent_permission_title),
value = if (canUseFullScreenIntent) {
context.getString(R.string.full_screen_intent_permission_granted)
} else {
context.getString(R.string.full_screen_intent_permission_not_granted)
}
)
)
}
}
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ How to translate with transifex:
<string name="nc_diagnosis_notification_permission" translatable="false">Notification permissions</string>
<string name="nc_diagnosis_notification_calls_channel_permission" translatable="false">Calls notification channel enabled?</string>
<string name="nc_diagnosis_notification_messages_channel_permission" translatable="false">Messages notification channel enabled?</string>
<string name="nc_diagnosis_full_screen_intent_permission_title" translatable="false">Show incoming call over lock screen</string>
<string name="nc_diagnosis_firebase_push_token_title" translatable="false">Firebase push token</string>
<string name="nc_diagnosis_firebase_push_token_latest_generated" translatable="false">Latest firebase push token generation</string>
<string name="nc_diagnosis_firebase_push_token_latest_fetch" translatable="false">Latest firebase push token fetch</string>
Expand Down
Loading