tangled
alpha
login
or
join now
geesawra.industries
/
jerry-no
8
fork
atom
A cheap attempt at a native Bluesky client for Android
8
fork
atom
overview
issues
pulls
pipelines
TimelineView: wire notification root view
geesawra.industries
5 months ago
0ccf47a3
40229b2e
+24
-7
2 changed files
expand all
collapse all
unified
split
app
src
main
java
industries
geesawra
monarch
NotificationsView.kt
TimelineView.kt
+12
app/src/main/java/industries/geesawra/monarch/NotificationsView.kt
···
1
1
+
package industries.geesawra.monarch
2
2
+
3
3
+
import androidx.compose.foundation.layout.Column
4
4
+
import androidx.compose.runtime.Composable
5
5
+
import androidx.compose.ui.Modifier
6
6
+
7
7
+
@Composable
8
8
+
fun NotificationsView(
9
9
+
modifier: Modifier = Modifier
10
10
+
) {
11
11
+
Column(modifier = modifier) {}
12
12
+
}
+12
-7
app/src/main/java/industries/geesawra/monarch/TimelineView.kt
···
1
1
package industries.geesawra.monarch
2
2
3
3
-
// import androidx.compose.foundation.layout.height // Will be removed for the sheet content Box
4
3
import android.widget.Toast
5
4
import androidx.annotation.StringRes
6
5
import androidx.compose.foundation.clickable
···
283
282
}
284
283
}
285
284
) { values ->
286
286
-
ShowSkeets(
287
287
-
viewModel = timelineViewModel,
288
288
-
state = listState,
289
289
-
modifier = Modifier.padding(values),
290
290
-
onReplyTap = onReplyTap
291
291
-
) { isRefreshing.value = false }
285
285
+
when (currentDestination) {
286
286
+
TabBarDestinations.HOME -> ShowSkeets(
287
287
+
viewModel = timelineViewModel,
288
288
+
state = listState,
289
289
+
modifier = Modifier.padding(values),
290
290
+
onReplyTap = onReplyTap
291
291
+
) { isRefreshing.value = false }
292
292
+
293
293
+
TabBarDestinations.NOTIFICATIONS -> NotificationsView(
294
294
+
modifier = Modifier.padding(values)
295
295
+
)
296
296
+
}
292
297
}
293
298
}
294
299
}