Bug P3
Status Update
Comments
lb...@gmail.com <lb...@gmail.com> #2
Please include a sample project that reproduces your issue.
[Deleted User] <[Deleted User]> #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?
Description
STEPS TO REPRODUCE:
1. Create an instance class of LruCache from both Android-x and Android itself.
2. Try to call "get" on them, and see if the type can be non-nullable.
val androidLruCache = android.util.LruCache<Int, String>(123)
val test: String = androidLruCache.get(1)
val androidxLruCache= androidx.collection.LruCache<Int,String>(123)
val test2: String = androidxLruCache.get(1)
3. Also check the code behind and their docs.
The bug is that for android-X LruCache it correctly has @Nullable annotation, making it impossible to have the type returned as non-null (without casting), and yet for the built-in one, it doesn't have the annotation at all, yet you can see in both the code and the documentation that it can return null.
They should both have Nullable annotation, and Android Studio should be ready to handle it correctly, too, not allowing to have the type as non-nullable so easily.
------------------
Studio Build:
Version of Gradle Plugin:
Version of Gradle:
Version of Java:
OS:
Android Studio Flamingo | 2022.2.1 Canary 1
Build #AI-222.3739.54.2221.9043926, built on September 9, 2022
Runtime version: 11.0.15+0-b2043.56-8887301 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4000M
Cores: 12
Registry:
external.system.auto.import.disabled=true
debugger.watches.in.variables=false
ide.text.editor.with.preview.show.floating.toolbar=false
ide.balloon.shadow.size=0
Non-Bundled Plugins:
com.vecheslav.darculaDarkerTheme (1.2.0)
com.intellij.marketplace (222.3739.67)
com.github.beansoft.jadx.gui.idea (2022.1.0)
com.dubreuia (2.3.0)
String Manipulation (9.5.1)
Show As ... (1.0.3)
com.google.mad-scorecard (1.2)
net.aquadc.mike.plugin (0.24)