mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Use Resources for string access (#3620)
This commit is contained in:
parent
0833a6767e
commit
8b83273a4f
8 changed files with 59 additions and 38 deletions
|
|
@ -119,13 +119,17 @@ class MainActivity : AppCompatActivity() {
|
|||
Timber.d("App link data is a channel set")
|
||||
model.requestChannelUrl(
|
||||
url = it,
|
||||
onFailure = { Toast.makeText(this, Res.string.channel_invalid, Toast.LENGTH_SHORT).show() },
|
||||
onFailure = {
|
||||
Toast.makeText(this, getString(Res.string.channel_invalid), Toast.LENGTH_SHORT).show()
|
||||
},
|
||||
)
|
||||
} else if (it.path?.startsWith("/v/") == true || it.path?.startsWith("/V/") == true) {
|
||||
Timber.d("App link data is a shared contact")
|
||||
model.setSharedContactRequested(
|
||||
url = it,
|
||||
onFailure = { Toast.makeText(this, Res.string.contact_invalid, Toast.LENGTH_SHORT).show() },
|
||||
onFailure = {
|
||||
Toast.makeText(this, getString(Res.string.contact_invalid), Toast.LENGTH_SHORT).show()
|
||||
},
|
||||
)
|
||||
} else {
|
||||
Timber.d("App link data is not a channel set")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue