Status Update
Comments
mi...@gmail.com <mi...@gmail.com> #2
cl...@google.com <cl...@google.com>
kd...@google.com <kd...@google.com> #3
ma...@gmail.com <ma...@gmail.com> #4
private void refreshAllLiveData() {
AppDataBase YOUR_DATABASE_WHICH_YOU_BUILD = .....
SupportSQLiteDatabase writableDatabase = YOUR_DATABASE_WHICH_YOU_BUILD.getOpenHelper().getWritableDatabase();
//get the database count;
Cursor cursor = writableDatabase.query("SELECT count(*) FROM sqlite_master WHERE type = 'table' AND name != 'android_metadata' AND name != 'room_master_table';");
int tableCount = 0;
while(cursor.moveToNext()) {
tableCount = cursor.getInt(0);
}
for (int i = 0; i < tableCount; i++) {
//update version table with the incremented count because room modification log stores tables with ids instead of names
writableDatabase.execSQL("INSERT OR REPLACE INTO room_table_modification_log VALUES(null, "+(i)+")");
}
YOUR_DATABASE_WHICH_YOU_BUILD.getInvalidationTracker().refreshVersionsAsync();
}
-----
This is a workaroud for refreshing all live datas, I still prefer to use a proper API you implemented.
Thanx
an...@google.com <an...@google.com> #5
mi...@gmail.com <mi...@gmail.com> #6
Example of such a hidden part test.findText(Common.getString(R.string.seal_not_scanned)).isNotDisplayed() Common is object with method for getting String from main project: fun getString(@StringRes id: Int): String { val context: Context = ApplicationProvider.getApplicationContext() return context.getString(id) }
part which is hidden behind dots is bolded one. Only way to uncover it is to type some object like Common after "(" then it is shown. In this is example under R.string.seal_not_scanned is short text "Not scanned"
Everything happens under androidTest files and string resources are from main module of app
an...@google.com <an...@google.com>
an...@google.com <an...@google.com> #7
I've submitted a fix that I expect will fix this which will be available in the next canary (Ladybug Feature Drop 2024.2.2 Canary 2).
Note that I haven't been able to reproduce this locally, unfortunately, so the fix is speculative. I've been able to reproduce scenarios where resources are folded to ...
instead of the actual resource value, but clicking (or Ctrl+clicking) on them always expands them. But the fix I've made actually now will start resolving the resource values correctly, so the appropriate values will be displayed. Since the reports we've received of this bug all involve the "missing" resource values that are replaced with ...
, I'm hopeful this will make the problem a non-issue.
Please let us know if you run into this again on Ladybug Feature Drop 2024.2.2 Canary 2 or a later build.
an...@google.com <an...@google.com> #8
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Ladybug Feature Drop | 2024.2.2 Canary 2
- Android Gradle Plugin 8.8.0-alpha02
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
In code when there is occurrence like R.string.sth it is usually folded to ... (3 dots, usually in parenthesis) - like in attached screenshot.
Previously single click or sometimes double click was revealing full definition allowing to edit it. Now it is often stuck and do not expand it. Sometimes it reveals as previously.
Build: AI-241.18034.62.2411.12071903, 202407102313
AS: Koala | 2024.1.1 Patch 1
AI-241.18034.62.2411.12071903, JRE 17.0.11+0--11852314x64 JetBrains s.r.o., OS Windows 10(amd64) v10.0 , screens 2400.0x1350.0, 1920.0x1080.0
Android Gradle Plugin: 8.5.1
Gradle: 8.7
Gradle JDK: Amazon Corretto 21.0.3
NDK: from local.properties: (not specified), latest from SDK: 20.1.5948944
CMake: from local.properties: (not specified), latest from SDK: 3.6.0-rc2, from PATH: (not found)
```