Skip to content

Commit ebd313d

Browse files
committed
show warning - account not found
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
1 parent ae9696e commit ebd313d

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

app/src/main/java/com/nextcloud/talk/conversationlist/ConversationsListActivity.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,11 @@ class ConversationsListActivity :
284284
initObservers()
285285
}
286286

287+
override fun onNewIntent(intent: Intent) {
288+
super.onNewIntent(intent)
289+
handleEcoSystemIntent(intent)
290+
}
291+
287292
private fun handleEcoSystemIntent(intent: Intent) {
288293
ecosystemManager.receiveAccount(
289294
intent,
@@ -300,6 +305,8 @@ class ConversationsListActivity :
300305
userManager.setUserAsActive(user)
301306
val intent = Intent(context, ConversationsListActivity::class.java)
302307
startActivity(intent)
308+
} else {
309+
Snackbar.make(binding.root, R.string.nc_no_account_found, Snackbar.LENGTH_LONG).show()
303310
}
304311
Log.d(TAG, accountName)
305312
}

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -955,4 +955,5 @@ How to translate with transifex:
955955
<string name="no_scheduled_messages_offline">No connection to server - Scheduled messages could not be loaded</string>
956956
<string name="nc_show_ecosystem_title">Show app switcher</string>
957957
<string name="nc_show_ecosystem_description">Nextcloud app suggestions in account chooser dialog</string>
958+
<string name="nc_no_account_found">Account not found</string>
958959
</resources>

0 commit comments

Comments
 (0)