File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
app/src/main/java/org/thoughtcrime/securesms
onboarding/messagenotifications Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import androidx.compose.ui.tooling.preview.Preview
19
19
import androidx.compose.ui.tooling.preview.PreviewParameter
20
20
import androidx.compose.ui.unit.dp
21
21
import com.squareup.phrase.Phrase
22
+ import network.loki.messenger.BuildConfig
22
23
import network.loki.messenger.R
23
24
import org.session.libsession.utilities.StringSubstitutionConstants.APP_NAME_KEY
24
25
import org.thoughtcrime.securesms.onboarding.OnboardingBackPressAlertDialog
@@ -76,7 +77,8 @@ internal fun MessageNotificationsScreen(
76
77
77
78
NotificationRadioButton (
78
79
R .string.notificationsFastMode,
79
- R .string.notificationsFastModeDescription,
80
+ if (BuildConfig .FLAVOR == " huawei" ) R .string.notificationsFastModeDescriptionHuawei
81
+ else R .string.notificationsFastModeDescription,
80
82
modifier = Modifier .contentDescription(R .string.AccessibilityId_notificationsFastMode ),
81
83
tag = R .string.recommended,
82
84
checked = state.pushEnabled,
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import android.text.TextUtils
12
12
import androidx.preference.ListPreference
13
13
import androidx.preference.Preference
14
14
import dagger.hilt.android.AndroidEntryPoint
15
+ import network.loki.messenger.BuildConfig
15
16
import network.loki.messenger.R
16
17
import org.session.libsession.utilities.TextSecurePreferences
17
18
import org.thoughtcrime.securesms.ApplicationContext
@@ -38,6 +39,11 @@ class NotificationsPreferenceFragment : CorrectedPreferenceFragment() {
38
39
true
39
40
}
40
41
42
+ fcmPreference.summary = when (BuildConfig .FLAVOR ) {
43
+ " huawei" -> getString(R .string.notificationsFastModeDescriptionHuawei)
44
+ else -> getString(R .string.notificationsFastModeDescription)
45
+ }
46
+
41
47
prefs.setNotificationRingtone(
42
48
NotificationChannels .getMessageRingtone(requireContext()).toString()
43
49
)
You can’t perform that action at this time.
0 commit comments