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 139516af..6895b8e2 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 @@ -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 { @@ -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) })