John Turkson
02/15/2022, 9:44 PMtextOverflow
(as well as the remaining parameters) from androidx.compose.material.Text
to Glance Text
fields?Mehmet Peker
03/06/2022, 2:20 AMPiotr Prus
03/08/2022, 1:13 PMWorker
using updateAppWidgetState
? I have tried to use it in Worker, but the update function need to be used from GlanceWidget class or I have to pass the GlanceStateDefinition
. So the question is, can I create the State Definition inside my worker?
If not, what is the way to update the widget from Worker
? I found that passing my state in constructor of MyGlanceWidget works, but then I am not using widgetState at all.Mehmet Peker
03/09/2022, 1:48 PMdaivid
03/10/2022, 3:53 AMGlanceStateDefinition
shared across multiple instances of the same widget?Piotr Prus
03/10/2022, 10:25 AMactionStartActivity
. The click parameter is assign during composition and I cannot use hte dynamic state as I can for ActionCallback. Rephrasing:
Is there a way to start activity but using class ActionCallback
? This class is called on click, not during composition, so i can get my parameters base on glanceID. @Marcel Pinto?Odin
03/23/2022, 9:49 AMactionRunCalback
with an action that uses a deeplink to open the app. We're doing this because our Glance widget is in a different module than our MainActivity
and then to avoid CircularDependencyException
. However, we're seeing a rather strange error from Crashlytics saying java.lang.IllegalArgumentException: List adapter activity trampoline invoked without specifying target intent.
. I saw that there was a check in ActionTrampoline.kt
that could throw this. Has anyone else seen this before? 😄 Stacktrace in thread 🧵Piotr Prus
04/22/2022, 1:49 PMKimon
05/06/2022, 10:28 AMandrew
05/27/2022, 4:26 PMViewFlipper
in glance?andrew
05/27/2022, 6:05 PMNicholas Doglio
06/04/2022, 4:56 PMMarcel Pinto
06/17/2022, 9:55 AMQusai Zakir
06/26/2022, 9:34 AMMarcel Pinto
07/01/2022, 3:14 PMRacka N
07/11/2022, 8:29 PMandroid.app.PendingIntent$CanceledException
when I execute the action.
PendingIntent code
internal fun openDeepLinkPendingIntent(context: Context, uriString: String): PendingIntent? {
val intent = Intent(
Intent.ACTION_VIEW,
uriString.toUri()
)
return TaskStackBuilder.create(context).run {
addNextIntentWithParentStack(intent)
getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE)
}
}
My ActionCallback:
class OpenTaskDetailsAction : ActionCallback {
override suspend fun onRun(context: Context, glanceId: GlanceId, parameters: ActionParameters) {
val taskId = parameters[PendingTasksWidgetParamKeys.TASK_ID_KEY]
taskId?.let {
val pendingIntent = openDeepLinkPendingIntent(context, it)
println("Pending Intent is present: $pendingIntent")
pendingIntent?.send()
}
}
}
Tolriq
08/11/2022, 3:16 PMKimon
08/15/2022, 9:38 AMjava.lang.IllegalStateException: No child for position 5 and size Wrap x Expand
Is there an easy way to figure out what is wrong with my composables when I get this error? What does the position stand for?
It happens when I use defaultWeight
GlanceModifier.Marcel Pinto
08/22/2022, 9:15 AMrsktash
08/22/2022, 2:10 PMTask android:minifyReleaseWithR8 FAILEDExecution failed for task ‘android:minifyReleaseWithR8’.
com.android.tools.r8.CompilationFailedException: Compilation failed to complete, position: offset: 932, line: 22, column: 7, origin: /Users/rustam/.gradle/caches/transforms-3/5bd4f57de5d0b1b3ad27e41d1f34fee0/transformed/glance-appwidget-1.0.0-alpha04/proguard.txt
Tolriq
08/22/2022, 3:08 PMMarcel Pinto
09/02/2022, 8:24 AMAllen Baker
09/28/2022, 1:40 PMDavide Giuseppe Farella
09/30/2022, 9:45 AMactionStartActivity
on alpha04?
I had a simple
val intent = packageManager.getLaunchIntentForPackage(package)!!
GlanceModifier.clickable(actionStartActivity(intent))
on alpha03, but after the update, clicking of the item has no effectTolriq
10/06/2022, 6:27 PMAGlanceWidget().updateAll(it)
BGlanceWidget().updateAll(it)
Then something the wrong widget content is rendered (Like A is rendered in B widget)Allen Baker
10/06/2022, 7:32 PMTolriq
10/07/2022, 9:03 AMTolriq
10/07/2022, 6:54 PMKimon
10/13/2022, 2:37 PMColumn
or Row
in Glance? I get a java.lang.IllegalArgumentException: Cannot find container Row with 11 children
error once I try to add the 11th children.. 🤔Rodri Represa
10/14/2022, 7:15 AMRodri Represa
10/14/2022, 7:15 AMKimon
10/14/2022, 7:24 AMRodri Represa
10/14/2022, 9:19 AMAllen Baker
10/14/2022, 2:37 PMbbade_
10/14/2022, 8:43 PM