mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-24 23:36:04 +00:00
Fix agent pet overlay permission and GitHub setup (#2548)
This commit is contained in:
1 parent
827ab2d485
commit
1b732c1b65
5 files changed
+28
-35
No files matched your search
@@ -116,6 +116,10 @@ internal object AgentPet {
|
||||
fun set(context: Context, on: Boolean) {
|
||||
enabled = on
|
||||
AgentHost.prefs(context).edit().putBoolean(KEY, on).apply()
|
||||
if (on) {
|
||||
allowed = PetWindows.allowed(context)
|
||||
if (!allowed) requestFloating(context)
|
||||
}
|
||||
}
|
||||
|
||||
/** Opens the system page where the user lets DroidDeck draw over other apps. */
|
||||
|
||||
Reference in new issue
Block a user