Play random gif instead of showing leak icon
https://twitter.com/ZacSweers/status/1327868799203336192?s=20
So Zac wants LeakCanary to show up a specific gif. That may be a joke, but who knows 🤔🙃. Showing that one gif would become annoying super fast. How about showing a random gif from giphy instead, maybe based on a customizable tag?
Now the real technical issue is that J in GIF stands for Janimated and unfortunately, dumping the heap freezes the VM. A one frame GIF wouldn't be much fun now would it?
However we could start an activity that's tag with a distinct process name. Then that activities displays a webview that just shows a page containing the Giphy GIF (that should work right?) and then when the work is done the initial process sends a broadcast to the gif activity to finish itself.
Apparently @ZacSweers @zach-klippenstein and @queencodemonkey volunteered to team up and build this.
A webm or other looping autoplay video format would be lighter than ~JIFs~ GIFs and can still play in a WebView. That's my 2 cents.
A webm or other looping autoplay video format would be lighter than ~JIFs~ GIFs and can still play in a WebView. That's my 2 cents.
should such a feature ever have the misfortune of existing, I hope it's not trying to care about performance.
I vote adding a Nedry "nuh uh uh" gif to the pool of options btw
should such a feature ever have the misfortune of existing, I hope it's not trying to care about performance.
Damn, I was really looking forward to the blog post about optimizing the hell out of gif processing.