Second Commit:
Version 1.5 [Partialy Optimized Version] [UI Fixes And Improvment] Todo: Optimized the Code Add String Theolgy
This commit is contained in:
@ -43,9 +43,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
binding = ActivityMainBinding.inflate(layoutInflater)
|
binding = ActivityMainBinding.inflate(layoutInflater)
|
||||||
// Create notification channel
|
|
||||||
NotificationUtils.createNotificationChannel(this)
|
NotificationUtils.createNotificationChannel(this)
|
||||||
// Schedule reminders
|
|
||||||
scheduleHealthReminders(this)
|
scheduleHealthReminders(this)
|
||||||
setContentView(binding.root)
|
setContentView(binding.root)
|
||||||
user = FirebaseAuth.getInstance()
|
user = FirebaseAuth.getInstance()
|
||||||
@ -221,6 +219,9 @@ class MainActivity : AppCompatActivity() {
|
|||||||
Toast.makeText(this, "Failed to retrieve user data.", Toast.LENGTH_SHORT).show()
|
Toast.makeText(this, "Failed to retrieve user data.", Toast.LENGTH_SHORT).show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
startActivity(Intent(this, LoginActivity::class.java))
|
||||||
|
finish()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
android:background="@drawable/bg_form"
|
android:background="@drawable/bg_form"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintHorizontal_bias="0.0"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:layout_constraintVertical_bias="0.377">
|
app:layout_constraintVertical_bias="0.377">
|
||||||
|
Reference in New Issue
Block a user