Skip to content

Commit

Permalink
openMF#1487-feat: Display toast for logout status
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparsh1212 committed Dec 6, 2020
1 parent 268b94f commit 051f2e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ class HomeActivity : BaseActivity(), UserDetailsView, NavigationView.OnNavigatio
i.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
startActivity(i)
finish()
Toast.makeText(this,
R.string.logged_out_successfully, Toast.LENGTH_SHORT)
.show();
})
.setNegativeButton(getString(R.string.cancel),
DialogInterface.OnClickListener { _, _ -> setNavigationViewSelectedItem(R.id.item_home) })
Expand Down
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 @@ -573,6 +573,7 @@
<string name="transaction_period">Transaction Period</string>
<string name="transaction_type">Transaction Type</string>
<string name="questions">Questions</string>
<string name="logged_out_successfully">Logged out successfully</string>

<string-array name="languages" translatable="false">
<item>English</item>
Expand Down

0 comments on commit 051f2e1

Please sign in to comment.