diff --git a/app/src/main/kotlin/org/mifos/mobile/cn/ui/mifos/DashboardActivity.kt b/app/src/main/kotlin/org/mifos/mobile/cn/ui/mifos/DashboardActivity.kt index 0c171b2e..28804e6d 100644 --- a/app/src/main/kotlin/org/mifos/mobile/cn/ui/mifos/DashboardActivity.kt +++ b/app/src/main/kotlin/org/mifos/mobile/cn/ui/mifos/DashboardActivity.kt @@ -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 { @@ -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) })