|
@@ -9,6 +9,7 @@ import android.view.animation.RotateAnimation
|
|
|
import android.widget.ImageView
|
|
|
import com.sambath.sbc.R
|
|
|
import com.sambath.sbc.app.App
|
|
|
+import com.sambath.sbc.app.MainActivity
|
|
|
import com.sambath.sbc.app.ShareActivity
|
|
|
import com.sambath.sbc.base.BaseActivity
|
|
|
import com.sambath.sbc.screen.login.LoginActivity
|
|
@@ -52,15 +53,18 @@ class SplashScreenActivity : BaseActivity() {
|
|
|
}
|
|
|
|
|
|
override fun onAnimationEnd(animation: Animation?) {
|
|
|
- //var nextScreen: Any = LoginActivity::class.java
|
|
|
- if (prefHelper.getToken().isNotEmpty()) {
|
|
|
- // nextScreen = ShareActivity::class.java
|
|
|
+
|
|
|
+ //Test
|
|
|
+ val intent = Intent(this@SplashScreenActivity, MainActivity::class.java)
|
|
|
+ startActivity(intent)
|
|
|
+
|
|
|
+ /*if (prefHelper.getToken().isNotEmpty()) {
|
|
|
val intent = Intent(this@SplashScreenActivity, ShareActivity::class.java)
|
|
|
startActivity(intent)
|
|
|
}else{
|
|
|
val intent = Intent(this@SplashScreenActivity, LoginActivity::class.java)
|
|
|
startActivity(intent)
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
finishAffinity()
|
|
|
|