home-assistant / home-assistant/android

Disable TileService elements in Manifest until the user enables them for use

Open
#4,401 5 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Kotlin
Stars
3.9k
Forks
1.1k
Avg merge
1d 12h
Merged PRs (30d)
81

Description

**Home Assistant Android app version(s):**
2024.4.1-full
**Android version(s):**
14 (AP1A.240405.002.B1)
**Device model(s):**
Google Pixel 7 Pro
**Home Assistant version:**
N/A
**Last working Home Assistant release (if known):**
N/A
**Description of problem, include YAML if issue is related to notifications:**
The first 12 TileServices declared in the manifest in https://github.com/home-assistant/android/blob/master/app/src/main/AndroidManifest.xml#L437 are enabled. This causes them to be visible in the tiles that can be added in Edit Mode for Quick Settings (and it takes a lot of space). Could the components instead be enabled programatically as they are needed (when the user sets them up)? Looking at https://github.com/home-assistant/android/blob/d640b9d9748a88c533afe61721e2af0915659081/app/src/main/java/io/homeassistant/companion/android/settings/qs/TileSlot.kt#L29 it seems that this is the goal, but instead of only 4 more enabled, there are 12 enabled by default.

**Companion App Logs:**

```

```

**Screenshot or video of problem:**

**Additional information:**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.