remove welcome popup

feature/top10
Laurent 7 years ago
parent 627a4f49a6
commit 4e50207b04
  1. 17
      app/src/main/java/net/pokeranalytics/android/ui/activity/HomeActivity.kt

@ -13,7 +13,6 @@ import net.pokeranalytics.android.R
import net.pokeranalytics.android.model.realm.Currency
import net.pokeranalytics.android.ui.activity.components.PokerAnalyticsActivity
import net.pokeranalytics.android.ui.adapter.HomePagerAdapter
import net.pokeranalytics.android.util.Preferences
import timber.log.Timber
@ -112,14 +111,14 @@ class HomeActivity : PokerAnalyticsActivity() {
* Check first launch
*/
private fun checkFirstLaunch() {
if (Preferences.getBoolean(Preferences.Keys.FIRST_LAUNCH, this, true)) {
Preferences.setBoolean(Preferences.Keys.FIRST_LAUNCH, false, this)
val builder = AlertDialog.Builder(this)
.setTitle(String.format(getString(R.string.welcome_in_), getString(R.string.app_name)))
.setMessage(R.string.popup_message_welcome)
.setNegativeButton(R.string.ok, null)
builder.show()
}
// if (Preferences.getBoolean(Preferences.Keys.FIRST_LAUNCH, this, true)) {
// Preferences.setBoolean(Preferences.Keys.FIRST_LAUNCH, false, this)
// val builder = AlertDialog.Builder(this)
// .setTitle(String.format(getString(R.string.welcome_in_), getString(R.string.app_name)))
// .setMessage(R.string.popup_message_welcome)
// .setNegativeButton(R.string.ok, null)
// builder.show()
// }
}
/**

Loading…
Cancel
Save