Fix issue #882
This commit is contained in:
parent
ef7dd73a22
commit
12b76915c8
|
@ -2007,6 +2007,9 @@ public class TootActivity extends BaseActivity implements OnPostActionInterface,
|
|||
if(restored != -1){
|
||||
SQLiteDatabase db = Sqlite.getInstance(getApplicationContext(), Sqlite.DB_NAME, null, Sqlite.DB_VERSION).open();
|
||||
new StatusStoredDAO(getApplicationContext(), db).remove(restored);
|
||||
}else if(currentToId != -1){
|
||||
SQLiteDatabase db = Sqlite.getInstance(getApplicationContext(), Sqlite.DB_NAME, null, Sqlite.DB_VERSION).open();
|
||||
new StatusStoredDAO(getApplicationContext(), db).remove(currentToId);
|
||||
}
|
||||
//Clear the toot
|
||||
toot_content.setText("");
|
||||
|
|
Loading…
Reference in New Issue