Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Attachment actions
Description
Component used:
Android Studio Hedgehog | 2023.1.1 Patch 2
Build #AI-231.9392.1.2311.11330709, built on January 19, 2024
Runtime version: 17.0.7+0-b2043.56-10550314 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry:
external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false
ide.instant.shutdown=false
Version used: 1.7.0
Devices/Android versions reproduced on:
- Samsung Galaxy 9+, Android 10
- Simulator Tablet Medium API 29 Q
And other old Android panels with Android 6.0 and 9.0
If this is a bug in the library, we would appreciate if you could attach:
- Sample project to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).
The problem happen since Version 1.7.0-beta01, with Version 1.6.1 and 1.7.0-alpha03 it worked yet
Same issue on Android Smartphone and Tablets
it works successfully with Simulator
- Simulator Tablet Medium API 30 (R)
- Simulator Tablet Nexus 10 API 30 and API 33
I guess the issue occurs on Smartphone and Tablets with Android version lesser than API 30 (and not with version 30, 33, 34...)
Code used to activate Immersive mode in Activity class
@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
if (android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT)
return;
if (MicroBrowserActivity.mImmersive && hasFocus) {
if (MicroBrowserActivity.mIsFullScreen) {
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_FULLSCREEN
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
} else {
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
}
}
}
app/build.gradle
android {
compileSdk 34
minSdk 21
targetSdk 34
...
}
allprojects {
repositories {
maven { url '
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
def appcompat_version = "1.7.0" //!!! Immersive doesn't work in Master and Detail View !!!, with 1.6.1 and "1.7.0-alpha03" it's OK
implementation "androidx.appcompat:appcompat:$appcompat_version"
// For loading and tinting drawables on older versions of the platform
implementation "androidx.appcompat:appcompat-resources:$appcompat_version"
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
// ...
}