Browse Source

fix OnboardingActivity is not closed on start of MainActivity

pull/46/head
Jannik 2 years ago
parent
commit
e46c234b6c
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
  1. 1
      app/src/main/java/org/mosad/seil0/projectlaogai/MainActivity.kt
  2. 2
      app/src/main/java/org/mosad/seil0/projectlaogai/OnboardingActivity.kt

1
app/src/main/java/org/mosad/seil0/projectlaogai/MainActivity.kt

@ -189,6 +189,7 @@ class MainActivity : AppCompatActivity(), NavigationView.OnNavigationItemSelecte
// show the onboarding activity
startActivity(Intent(this, OnboardingActivity::class.java))
finish()
}
Aesthetic.config {

2
app/src/main/java/org/mosad/seil0/projectlaogai/OnboardingActivity.kt

@ -99,7 +99,7 @@ class OnboardingActivity : AppCompatActivity() {
private fun launchHomeScreen() {
startActivity(Intent(this, MainActivity::class.java))
//finish()
finish()
}
private var viewPagerPageChangeListener: ViewPager.OnPageChangeListener = object : ViewPager.OnPageChangeListener {

Loading…
Cancel
Save

Du besuchst diese Seite mit einem veralteten IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.
You are visiting this site with an outdated IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.
Weitere Infos | More Information
Klicke zum schließen | Click to close