Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import androidx.compose.material3.NavigationBarItemDefaults
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.drawBehind
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
Expand All @@ -26,16 +24,8 @@ fun BottomNavigationBar(navController: NavController) {
NavigationBar(
modifier =
Modifier
.height(60.dp)
.fillMaxWidth()
.drawBehind {
drawLine(
color = Color.LightGray,
start = Offset(0f, 0f),
end = Offset(size.width, 0f),
strokeWidth = 1.dp.toPx(),
)
},
.height(74.dp)
.fillMaxWidth(),
containerColor = MaterialTheme.colorScheme.surface,
contentColor = MaterialTheme.colorScheme.onSurface,
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ object NavBarItems {
),
BarItem(
title = "Create",
iconNotPressed = R.drawable.outline_add_24,
iconPressed = R.drawable.outline_add_24,
iconNotPressed = R.drawable.add_24dp,
iconPressed = R.drawable.add_24dp,
route = NavRoutes.Create.createRoute(),
),
BarItem(
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,19 @@ class ProfileViewModel @Inject constructor(
_state.value = _state.value.copy(isLoggedIn = isLoggedInActually)
}

if (FirebaseAuth.getInstance().currentUser != null) {
_state.value = _state.value.copy(isLoggedIn = true)
viewModelScope.launch {
_likedPosts.value = likesRepository.getLikedPosts()
}
}

viewModelScope.launch {
uriRepository.getAllUris().collect {
_savedUris.value = it
}
}

viewModelScope.launch(Dispatchers.IO) {
val imageUri = updateProfileImageUseCase.getProfileImageUrl()?.toUri()

Expand Down
9 changes: 9 additions & 0 deletions app/src/main/res/drawable/add_24dp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960">
<path
android:pathData="M440,520L240,520q-17,0 -28.5,-11.5T200,480q0,-17 11.5,-28.5T240,440h200v-200q0,-17 11.5,-28.5T480,200q17,0 28.5,11.5T520,240v200h200q17,0 28.5,11.5T760,480q0,17 -11.5,28.5T720,520L520,520v200q0,17 -11.5,28.5T480,760q-17,0 -28.5,-11.5T440,720v-200Z"
android:fillColor="#000000"/>
</vector>
5 changes: 5 additions & 0 deletions app/src/main/res/drawable/add_28dp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="28dp" android:viewportHeight="960" android:viewportWidth="960" android:width="28dp">

<path android:fillColor="#000000" android:pathData="M440,520L240,520q-17,0 -28.5,-11.5T200,480q0,-17 11.5,-28.5T240,440h200v-200q0,-17 11.5,-28.5T480,200q17,0 28.5,11.5T520,240v200h200q17,0 28.5,11.5T760,480q0,17 -11.5,28.5T720,520L520,520v200q0,17 -11.5,28.5T480,760q-17,0 -28.5,-11.5T440,720v-200Z"/>

</vector>