Commit graph

21 commits

Author SHA1 Message Date
tibbi
d4bf065cb5 adding a new MediaStoreId field to Medium model 2021-12-05 21:18:57 +01:00
Tibor Kaputa
e603663f0b
Update GalleryDatabase.kt 2021-06-18 10:00:46 +02:00
DaPa
dc72fc0de7 Avoid SQLite connection object leaking
- W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.simplemobiletools.gallery.pro/databases/gallery.db' was leaked!  Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.

Happens to me on Android 11 (Moto g 5G plus, with Google Photos disabled):
 - open Camera, then click on the small picture thumbnail from bottom-right corner which should open the Gallery app
 - in this scenario sometimes, the Simple Gallery was crashing and the above warning was seen in the logs...
 - no more crash after this patch: please review/test properly before incorporating!
2021-06-17 22:18:55 +03:00
tibbi
54bb8232c5 store last_modified in a custom db with date_takens too 2020-09-15 22:26:26 +02:00
tibbi
b27877c109 make sort_value be empty by default 2020-02-10 22:05:51 +01:00
tibbi
21cc0b97bc properly update the database by adding the new sort_value column 2020-02-10 22:02:58 +01:00
tibbi
b9369139f1 renaming some DAO to Dao 2020-01-25 09:51:28 +01:00
tibbi
6b95c58559 try flipping some migration lines to avoid working on nonexistent tables 2020-01-18 23:29:03 +01:00
tibbi
631e9dea34 adding the actual DateTaken value column 2020-01-16 21:00:37 +01:00
tibbi
f1b380e6fa rename file_name column to filename 2020-01-16 20:57:12 +01:00
tibbi
8035d90e36 store the file name in the date takens and favorites tables too 2020-01-16 11:28:01 +01:00
tibbi
402fccbc21 create an own table for storing favorite items too 2020-01-16 11:26:13 +01:00
tibbi
ca6b84be81 adding an index on DateTakens table 2020-01-15 23:00:52 +01:00
tibbi
aa0c21a209 change last_fixed field in DateTakens to int 2020-01-15 22:48:43 +01:00
tibbi
8b02b93161 create an own table DateTakens to be used at sorting 2020-01-15 21:43:39 +01:00
tibbi
96d839cd8c lets fall back to db recreation on some error, it is better than a crashing app 2018-12-17 14:07:41 +01:00
tibbi
18cd305caf creating a Widget table 2018-12-16 13:13:41 +01:00
tibbi
8c97d7952a fix #1097, optimize video thumbnail duration showing performance 2018-12-01 11:19:25 +01:00
tibbi
0b8e958d01 disable Room db writeAheadLogging and custom query executor 2018-11-18 22:56:49 +01:00
tibbi
e92836353c use a more modern way of signing apps 2018-11-06 23:18:28 +01:00
tibbi
9589c257bc appending .pro to the package name 2018-11-04 21:25:51 +01:00