Status Update
Comments
cs...@google.com <cs...@google.com> #2
My take is that if the user decides to hide tabs, then we shouldn't show this switcher either since it's assumed to be in the same toolbar as tabs.
am...@google.com <am...@google.com> #3
then we shouldn't show this switcher either
The IntelliJ behavior for Markdown files, for instance, is showing the floating toolbar when there are no editor tabs. Shouldn't we copy this behavior?
di...@google.com <di...@google.com> #4
Chris, what's your take on #3? Let us know and assign back to me.
cs...@google.com <cs...@google.com> #5
Ah right, I forgot about that. Yes let's follow that pattern.
v....@gmail.com <v....@gmail.com> #6
However, do we know why is the switcher shown in ViewModel at all?
di...@google.com <di...@google.com>
am...@google.com <am...@google.com>
am...@google.com <am...@google.com> #7
As agreed in
an...@google.com <an...@google.com> #8
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Meerkat | 2024.3.1 Canary 3
- Android Gradle Plugin 8.9.0-alpha03
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
I'm using no tabs (Tab placement: None), since vertical space on a laptop is expensive and therefore this is especially annoying, as it leaves a gray bar at the top, eating up the precious vertical real estate.
What's weird is that it's not shown in some files, but is in others, mostly ViewModels, like here, `DashboardViewModel` you can see the design tools picker -- but not always, like in the `AppSlotDetailViewModel` there's none - and they both extend the same `ViewModel` type.
Regardless, there's no UI going on, see the imports for DashboardViewModel
```
package sk.foo.bar
import kotlinx.coroutines.flow.*
import kotlinx.coroutines.launch
import sk.foo.bar.DispatcherProvider
import sk.foo.bar.Fail
import sk.foo.bar.Loading
```
Not even android.
So the logic for showing/hiding must be buggy.
Android Studio Jellyfish | 2023.3.1 Canary 7
Build #AI-233.13135.103.2331.11360849, built on January 25, 2024
Runtime version: 17.0.9+0--11255266 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 3988M
Cores: 16
Registry:
ide.experimental.ui=true