Skip to content

Commit

Permalink
fix: notifications rendering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagarjuna0033 committed Dec 5, 2024
1 parent a15ed12 commit cb8203a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ dependencies {
implementation(libs.androidx.profileinstaller)
implementation(libs.google.oss.licenses)
implementation(libs.androidx.multidex)
implementation(libs.dbflow)

testImplementation(projects.core.testing)
testImplementation(libs.hilt.android.testing)
Expand Down
3 changes: 2 additions & 1 deletion androidApp/src/main/kotlin/org/mifos/mobile/HomeActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import androidx.lifecycle.Lifecycle
import androidx.lifecycle.lifecycleScope
import androidx.lifecycle.repeatOnLifecycle
import androidx.navigation.compose.rememberNavController
import com.raizlabs.android.dbflow.config.FlowManager
import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.flow.onEach
Expand All @@ -47,7 +48,7 @@ class HomeActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
val splashScreen = installSplashScreen()
super.onCreate(savedInstanceState)

FlowManager.init(this)
var uiState: HomeActivityUiState by mutableStateOf(HomeActivityUiState.Loading)

// Update the uiState
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
package org.mifos.mobile.core.datastore

import android.util.Log
import com.raizlabs.android.dbflow.sql.language.SQLite
import io.reactivex.Observable
import org.mifos.mobile.core.datastore.model.Charge
Expand Down Expand Up @@ -48,6 +49,7 @@ class DatabaseHelper @Inject constructor() {
.from(MifosNotification::class.java)
.queryList()
Collections.sort(notifications, NotificationComparator())
Log.d("Notifications@@@", notifications.toString())
return notifications
}

Expand Down

0 comments on commit cb8203a

Please sign in to comment.