Bug P2
Status Update
Comments
an...@gmail.com <an...@gmail.com> #2
Please include a sample project that reproduces your issue.
an...@gmail.com <an...@gmail.com> #3
Here is the sample project.
Steps to reproduce:
1. Press on "Search" icon;
2. Write something;
3. Search this text, keyboard will be dismissed;
4. Tap on "Dialog" button;
5. Dissmiss dialog;
With the new 1.5.0 fragment library version text will be cleared in the search box after dismissing dialog.
In the version 1.4.1 and lower text in the search is not clearing and this is correct behaviour.
Please suggest some workarounds or how to fix this issue?
Steps to reproduce:
1. Press on "Search" icon;
2. Write something;
3. Search this text, keyboard will be dismissed;
4. Tap on "Dialog" button;
5. Dissmiss dialog;
With the new 1.5.0 fragment library version text will be cleared in the search box after dismissing dialog.
In the version 1.4.1 and lower text in the search is not clearing and this is correct behaviour.
Please suggest some workarounds or how to fix this issue?
an...@gmail.com <an...@gmail.com> #4
Hello, have you checked sample project? I hope it will help find the issue.
Description
Android API version: 35
Activity (lib) version: 1.9.3
Devices/Android versions reproduced on: Pixel 6 Pro, Pixel 5 (emulators)
I've encountered a bug when trying to enable edge-to-edge mode on Android 15. It seems that starting with API 35, you can no longer manually change the navigation bar icon color mode (light/dark). In prior versions, you only needed to apply the respective (light/dark) style in the enableEdgeToEdge() method for the navigation bar. This technique still works for the status bar but not for the navigation bar.
Is this intended behavior? If so, how can I change the color mode of the navigation buttons? (I need light buttons in both dark and light modes.)
Steps to Reproduce:
1. Create a project that targets API 35.
2. Enable edge-to-edge mode using the enableEdgeToEdge() method.
3. Set the navigation bar style to dark with a Color.TRANSPARENT scrim (you can use any color).
4. Launch the application on any device targeting API 35.
Example of an activity that shows the issue:
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge(
navigationBarStyle = SystemBarStyle.dark(Color.TRANSPARENT)
)
setContentView(R.layout.activity_main)
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
insets
}
}
}
Attachments:
1. Screenshots of the nav bars in light mode.
2. Screenshots of the nav bars in dark mode.
3. A sample project showing the issue.