-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Glance Widget WIP #38
Conversation
app/src/main/java/com/google/android/samples/socialite/widget/SocialiteWidgetReceiver.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/google/android/samples/socialite/SocialApp.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/google/android/samples/socialite/ui/chat/ChatViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/google/android/samples/socialite/widget/SocialiteWidgetReceiver.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think read/unread states should be recorded for each Message
like read_timestamp
, but that can come later.
app/src/main/java/com/google/android/samples/socialite/data/AppDatabase.kt
Outdated
Show resolved
Hide resolved
Hey guys I've done some updates. I've collapsed the PR down to two commits. The first is the "base" to be cherry picked for the codelab starter and the second is the solution for the codelab |
c39c8cd
to
83a0fa4
Compare
Regress SociaLite by removing predictive back support for I/O'24 codelab
2c2637c
to
c2852dd
Compare
app/src/main/java/com/google/android/samples/socialite/widget/ui/ContactRow.kt
Outdated
Show resolved
Hide resolved
import com.google.android.samples.socialite.widget.model.WidgetModel | ||
|
||
@Composable | ||
fun FavoriteContact(model: WidgetModel, onClick: Action) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here - this should accept a modifier
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
import kotlinx.coroutines.runBlocking | ||
|
||
@Composable | ||
fun ZeroState(repository: WidgetModelRepository, widgetId: Int, context: Context) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you get the context from LocalContext
rather than having to pass it here as an argument?
This should also accept a modifier.
@@ -0,0 +1,9 @@ | |||
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license notice
Change-Id: Ibba72892121de5f6b30f951857cb5760a4449f54
Change-Id: Ibba72892121de5f6b30f951857cb5760a4449f54
Change-Id: Ie75625aa5ca568f41f94ef58b98a583c79aebe0d
Change-Id: I9536635d414af6fad22ebc79ef8d400810b9ffb4
This is the first draft / MVP of a widget for SociaLite built with Glance.