Change troubleshoot description if using FCM
This commit is contained in:
parent
c584fa60dd
commit
7e258282a2
|
@ -35,12 +35,22 @@ class TestNewEndpoint @Inject constructor(private val context: AppCompatActivity
|
|||
|
||||
val endpoint = UPHelper.getUpEndpoint(context)
|
||||
|
||||
if (!endpoint.isNullOrEmpty()) {
|
||||
status = TestStatus.SUCCESS
|
||||
description = stringProvider.getString(R.string.settings_troubleshoot_test_endpoint_success, endpoint)
|
||||
if (UPHelper.isEmbeddedDistributor(context)) {
|
||||
if (!endpoint.isNullOrEmpty()) {
|
||||
status = TestStatus.SUCCESS
|
||||
description = stringProvider.getString(R.string.settings_troubleshoot_test_fcm_success, endpoint)
|
||||
} else {
|
||||
status = TestStatus.FAILED
|
||||
description = stringProvider.getString(R.string.settings_troubleshoot_test_fcm_failed)
|
||||
}
|
||||
} else {
|
||||
status = TestStatus.FAILED
|
||||
description = stringProvider.getString(R.string.settings_troubleshoot_test_endpoint_failed)
|
||||
if (!endpoint.isNullOrEmpty()) {
|
||||
status = TestStatus.SUCCESS
|
||||
description = stringProvider.getString(R.string.settings_troubleshoot_test_endpoint_success, endpoint)
|
||||
} else {
|
||||
status = TestStatus.FAILED
|
||||
description = stringProvider.getString(R.string.settings_troubleshoot_test_endpoint_failed)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1132,7 +1132,7 @@
|
|||
<string name="settings_troubleshoot_test_play_services_quickfix">Fix Play Services</string>
|
||||
|
||||
<!-- Unifiedpush Endpoint -->
|
||||
<string name="settings_troubleshoot_test_endpoint_title">Endpoint</string>
|
||||
<string name="settings_troubleshoot_test_endpoint_title">Endpoint/FCM</string>
|
||||
<string name="settings_troubleshoot_test_endpoint_success">Endpoint successfully retrieved:\n%1$s</string>
|
||||
<string name="settings_troubleshoot_test_endpoint_failed">Failed to retrieved Endpoint.</string>
|
||||
|
||||
|
|
Loading…
Reference in New Issue