Status Update
Comments
uc...@google.com <uc...@google.com>
lu...@google.com <lu...@google.com>
kd...@google.com <kd...@google.com> #2
lb...@gmail.com <lb...@gmail.com> #3
an...@google.com <an...@google.com>
an...@google.com <an...@google.com>
an...@google.com <an...@google.com>
ad...@google.com <ad...@google.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>
an...@google.com <an...@google.com> #5
lb...@gmail.com <lb...@gmail.com> #6
@5 While I'm happy you did it, I find it weird that you've done it so quickly for such a niche request, while when I requested for Kotlin (have suggestions that make sense for "object ..." like we have for Java's "new ...", for example), I still see Kotlin's support on Android Studio way behind of Java...
an...@google.com <an...@google.com> #7
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 1
- Android Gradle Plugin 8.8.0-alpha01
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!
lb...@gmail.com <lb...@gmail.com> #8
@7 Seems it offers them, but without the extra ones of "anyOf" , "allOf" :
Can you please consider adding them, with being one of the tops? Also can you please add the context menu operations to convert between single, "anyOf", and "allOf" ?
Description
Same for other annotations that could be auto-suggested with known values