Commit c83e48dd authored by Govind Dixit's avatar Govind Dixit

requested changes

parent 6cc5cd6c
...@@ -277,13 +277,7 @@ class MainActivity : AppCompatActivity(), MainView, HasActivityInjector, ...@@ -277,13 +277,7 @@ class MainActivity : AppCompatActivity(), MainView, HasActivityInjector,
fun setCheckedNavDrawerItem(@IdRes item: Int) = view_navigation.setCheckedItem(item) fun setCheckedNavDrawerItem(@IdRes item: Int) = view_navigation.setCheckedItem(item)
override fun showProgress() { override fun showProgress() {
progressDialog = ProgressDialog.show( progressDialog = ProgressDialog.show(this, getString(R.string.app_name), getString(R.string.msg_log_out), true, false)
this,
getString(R.string.app_name),
getString(R.string.msg_log_out),
true,
false
)
} }
override fun hideProgress() { override fun hideProgress() {
...@@ -333,8 +327,7 @@ class MainActivity : AppCompatActivity(), MainView, HasActivityInjector, ...@@ -333,8 +327,7 @@ class MainActivity : AppCompatActivity(), MainView, HasActivityInjector,
} }
dialog.dismiss() dialog.dismiss()
} }
val mdialog = builder.create() builder.create().show()
mdialog.show()
} }
private fun setLocale(lang: String) { private fun setLocale(lang: String) {
......
...@@ -101,7 +101,6 @@ class SettingsFragment : Fragment(), SettingsView, AdapterView.OnItemClickListen ...@@ -101,7 +101,6 @@ class SettingsFragment : Fragment(), SettingsView, AdapterView.OnItemClickListen
} }
} }
private fun showAppOnStore() { private fun showAppOnStore() {
try { try {
startActivity(Intent(Intent.ACTION_VIEW, getString(R.string.market_link).toUri())) startActivity(Intent(Intent.ACTION_VIEW, getString(R.string.market_link).toUri()))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment