Creating database without localized collators on NYC and above

Android automatically creates and maintains a metaData table to
store the current device locale. This is used when fetching
sorted results. Since Laucher does not require string based
sorting on its tables, we can avoid unnecessary IO by disabling
this feature

Bug: 24608776
Change-Id: I8bbf5ca3abd505be95a85cfc99dd0438966575e9
This commit is contained in:
Sunny Goyal
2016-03-15 15:30:11 -07:00
parent 77b3e1a57b
commit bf67f3b184
3 changed files with 32 additions and 3 deletions
@@ -98,7 +98,7 @@ public abstract class SQLiteCacheHelper {
private class MySQLiteOpenHelper extends SQLiteOpenHelper {
public MySQLiteOpenHelper(Context context, String name, int version) {
super(context, name, null, version);
super(new NoLocaleSqliteContext(context), name, null, version);
}
@Override