Skip to content

Commit

Permalink
splash
Browse files Browse the repository at this point in the history
  • Loading branch information
sunildev-01 committed Jun 27, 2024
1 parent 5c81c97 commit 3689020
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.example.newsappsunil.presentation.ui.activity

import android.annotation.SuppressLint
import android.content.Intent
import android.os.Bundle
import android.os.Handler
Expand All @@ -9,6 +10,7 @@ import androidx.databinding.DataBindingUtil
import com.example.newsappsunil.R
import com.example.newsappsunil.databinding.ActivitySplashBinding

@SuppressLint("CustomSplashScreen")
class SplashActivity : AppCompatActivity() {

private lateinit var binding: ActivitySplashBinding
Expand All @@ -18,7 +20,6 @@ class SplashActivity : AppCompatActivity() {
binding = DataBindingUtil.setContentView(this, R.layout.activity_splash)

Handler(Looper.getMainLooper()).postDelayed({
// Start the main activity
val intent = Intent(this, MainActivity::class.java)
startActivity(intent)
finish()
Expand Down

0 comments on commit 3689020

Please sign in to comment.