Suspicious mix of setType and setData
Suspicious mix of setType
and setData
Intent provides the following APIs: setData(Uri)
and setType(String)
. Unfortunately, setting one clears the other. If you want to set both, you should call setDataAndType(Uri, String)
instead.
Issue id: IntentReset
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3 |
Plugin: | Android, 2022.3.1 Beta 2 |
Last modified: 13 July 2023