mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
add utility to erase all thumbnails
This commit is contained in:
parent
dfdbd9a8a2
commit
82f61b43f2
1 changed files with 17 additions and 0 deletions
|
@ -466,6 +466,23 @@ public class DBUtils {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void clearThumbnails( Context context )
|
||||||
|
{
|
||||||
|
if ( GitVersion.THUMBNAIL_SUPPORTED ) {
|
||||||
|
initDB( context );
|
||||||
|
synchronized( s_dbHelper ) {
|
||||||
|
SQLiteDatabase db = s_dbHelper.getWritableDatabase();
|
||||||
|
ContentValues values = new ContentValues();
|
||||||
|
values.putNull( DBHelper.THUMBNAIL );
|
||||||
|
long result = db.update( DBHelper.TABLE_NAME_SUM,
|
||||||
|
values, null, null );
|
||||||
|
db.close();
|
||||||
|
|
||||||
|
notifyListeners( -1, true );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static String getRelayID( Context context, long rowid )
|
public static String getRelayID( Context context, long rowid )
|
||||||
{
|
{
|
||||||
String result = null;
|
String result = null;
|
||||||
|
|
Loading…
Reference in a new issue