Skip to content

Commit

Permalink
Revert "Test video"
Browse files Browse the repository at this point in the history
This reverts commit 7dac35e.
  • Loading branch information
DHuckaby committed Aug 26, 2024
1 parent 7dac35e commit 9737d8a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions docs/learnings/2024-08-25-dynamic-app-icons.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,3 @@ The way we reference an activity-alias in code is via a class called [`Component
At a high level we need to be able to not only enable the currently disabled alias, but also disable the currently enabled alias. If we blindly switch the states it will work, but your application will close automatically every single time you do. If you only want it to happen the first time you need to take into account the original default state. So when enabling the default alias, you just need to set the state to default. Or when disabling the non-default alias, you just need to set the state to default.

I have compiled an [example project](https://github.com/DHuckaby/Chameleon) that does all of this that you can follow as a guide, or just copy/paste it like most do from StackOverflow. I don't mind either way, it is a pretty slick solution once it is in place. Given this is largely in uncharted territories, good luck if you ship it to production.

### Video
<video src="https://github.com/DHuckaby/Chameleon/raw/main/docs/Screen_recording_20240825_224418.mp4" width=300></video>

0 comments on commit 9737d8a

Please sign in to comment.