Skip to content

Commit

Permalink
Merge pull request #85 from Vanshika-Mittal/master
Browse files Browse the repository at this point in the history
Added: Toast showing successful logout
  • Loading branch information
abhijitramesh authored Dec 4, 2019
2 parents f674419 + bc6bc67 commit 4ec1202
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import org.mifos.mobile.cn.ui.mifos.recentTransactions.RecentTransactionsFragmen
import org.mifos.mobile.cn.ui.mifos.settings.SettingsFragment
import org.mifos.mobile.cn.ui.utils.CircularImageView
import org.mifos.mobile.cn.ui.utils.Toaster
import android.widget.Toast

class DashboardActivity : MifosBaseActivity(), View.OnClickListener, NavigationView.OnNavigationItemSelectedListener {

Expand Down Expand Up @@ -69,6 +70,8 @@ class DashboardActivity : MifosBaseActivity(), View.OnClickListener, NavigationV
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
startActivity(intent)
finish()
//Show successful logout Toast.
Toast.makeText(applicationContext, "Logged Out Successfully", Toast.LENGTH_SHORT).show()
})
.setNegativeButton(getString(R.string.cancel),
DialogInterface.OnClickListener { dialog, which -> setNavigationViewSelectedItem(R.id.item_home) })
Expand Down

0 comments on commit 4ec1202

Please sign in to comment.