Skip to content

Commit

Permalink
fix(history): fix can not clean old search history
Browse files Browse the repository at this point in the history
  • Loading branch information
ZCShou committed Mar 30, 2024
1 parent 9aff736 commit a9a1c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/zcshou/gogogo/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ private void initStoreHistory() {
// 搜索历史
DataBaseHistorySearch dbHistory = new DataBaseHistorySearch(getApplicationContext());
mSearchHistoryDB = dbHistory.getWritableDatabase();
mLocationHistoryDB.delete(DataBaseHistorySearch.TABLE_NAME,
mSearchHistoryDB.delete(DataBaseHistorySearch.TABLE_NAME,
DataBaseHistorySearch.DB_COLUMN_TIMESTAMP + " < ?",
new String[] {Long.toString(expirationTime)});
} catch (Exception e) {
Expand Down

0 comments on commit a9a1c50

Please sign in to comment.