Skip to content

Commit

Permalink
Added: Toast showing successful logout
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanshika-Mittal committed Dec 4, 2019
1 parent a06f924 commit bc6bc67
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import org.mifos.mobile.cn.ui.mifos.products.ProductFragment
import org.mifos.mobile.cn.ui.mifos.recentTransactions.RecentTransactionsFragment
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 @@ -68,6 +69,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 bc6bc67

Please sign in to comment.