Bug P3
Status Update
Comments
lb...@gmail.com <lb...@gmail.com> #2
We gave up upgrading to Room because we need to use FTS3/FTS4 virtual tables. Any plants to support it?
vi...@google.com <vi...@google.com>
lb...@gmail.com <lb...@gmail.com> #3
Florina Muntenescu (Android developer advocate at Google) told me that FTS support will definitely NOT be in Room 1.0 final. It is postponed to an indeterminate later version.
lb...@gmail.com <lb...@gmail.com> #4
It is possible to work with virtual tables and fts4 while using Room v1. You just need to create and access it by yourself using sql queries. Not perfect but it works for me (just did it a few days ago).
Can't wait for this feature to be in Room
Can't wait for this feature to be in Room
Description
- Steps to reproduce the problem (including sample code if appropriate).
1. On Android Studio stable (because canary doesn't have it for some reason, which is a different bug) create a new project with settings screen. You can update all dependencies if you wish.
2. Add this code to the app, to detect possible causes of ANR:
val executor = Executors.newSingleThreadExecutor()
StrictMode.setThreadPolicy(StrictMode.ThreadPolicy.Builder().detectDiskReads().detectDiskWrites().detectNetwork()
.penaltyListener(executor) { violation ->
Log.d("AppLog", "found possible ANR cause:$violation stackTrace:${violation.stackTrace.joinToString("\n")}")
}
.penaltyLog().build())
3.Run the app
- What happened.
The bug is that it tells you that setPreferencesFromResource is reading from storage via the UI thread, and sadly I can't find any workaround for it.
For example, I wanted to provide it with SharedPreferences that is initialized outside, but I can't find any way to do it.
- What you think the correct behavior should be.
As SharedPreferences are the only official way on Android to be handled in settings screens that use Preference, we should have a way to avoid ANR.
- Is this a security related issue? Yes/No
No
Android Studio Electric Eel | 2022.1.1
Build #AI-221.6008.13.2211.9477386, built on January 11, 2023
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: 8048M
Cores: 12
Registry:
external.system.auto.import.disabled=true
debugger.watches.in.variables=false
ide.text.editor.with.preview.show.floating.toolbar=false
Non-Bundled Plugins:
com.intellij.marketplace (221.6008.18)
org.intellij.plugins.markdown (221.5787.39)
com.github.beansoft.jadx.gui.idea (2022.1.0)
com.dubreuia (2.3.0)
String Manipulation (9.5.0)
Show As ... (1.0.3)
GenerateSerializationHelpers (1.0.6)
GenerateSerialVersionUID (3.0.3)
com.google.mad-scorecard (1.2)
net.aquadc.mike.plugin (0.27)
izhangzhihao.rainbow.brackets (2023.1.1-ij)
com.ppismerov.ksvu (0.0.1)