This repository was archived by the owner on Dec 16, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
java/com/marknkamau/justjava/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import android.os.Bundle
66import com.google.firebase.iid.FirebaseInstanceId
77import com.marknjunge.core.data.local.PreferencesRepository
88import com.marknjunge.core.data.repository.UsersRepository
9+ import com.marknkamau.justjava.R
910import com.marknkamau.justjava.data.network.FirebaseService
1011import com.marknkamau.justjava.ui.main.MainActivity
1112import kotlinx.coroutines.CoroutineScope
@@ -30,6 +31,7 @@ class SplashActivity : AppCompatActivity() {
3031
3132 override fun onCreate (savedInstanceState : Bundle ? ) {
3233 super .onCreate(savedInstanceState)
34+ setContentView(R .layout.activity_splash)
3335
3436 if (preferencesRepository.isSignedIn) {
3537 coroutineScope.launch {
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3+ xmlns : app =" http://schemas.android.com/apk/res-auto"
4+ android : layout_width =" match_parent"
5+ android : layout_height =" match_parent" >
6+
7+ <ProgressBar
8+ android : id =" @+id/progressBar"
9+ style =" ?android:attr/progressBarStyle"
10+ android : layout_width =" 72dp"
11+ android : layout_height =" 72dp"
12+ android : layout_marginBottom =" 32dp"
13+ android : indeterminate =" true"
14+ app : layout_constraintBottom_toBottomOf =" parent"
15+ app : layout_constraintEnd_toEndOf =" parent"
16+ app : layout_constraintStart_toStartOf =" parent" />
17+ </androidx .constraintlayout.widget.ConstraintLayout>
Original file line number Diff line number Diff line change 3131
3232 <style name =" AppTheme.SplashTheme" parent =" Theme.MaterialComponents.Light.NoActionBar" >
3333 <item name =" colorPrimaryDark" >@color/colorPrimaryDark</item >
34+ <item name =" colorAccent" >@color/colorAccent</item >
3435 <item name =" android:windowBackground" >@drawable/background_splash</item >
3536 </style >
3637
You can’t perform that action at this time.
0 commit comments