Buggy code:
public class Storage { public static final String PACKAGE_NAME = "com.catchingnow.tinyclipboardmanager" ; public static final int NOTIFICATION_VIEW = 1 ; public static final int MAIN_ACTIVITY_VIEW = 2 ; public static final int SYSTEM_CLIPBOARD = 4 ; private static final String TABLE_NAME = "clipHistory" ; private static final String CLIP_STRING = "history" ; private static final String CLIP_DATE = "date" ; private static Storage mInstance = null ; private Storage . StorageHelper dbHelper ; private SQLiteDatabase db ; private Context c ; private ClipboardManager cb ; private List < ClipObject > clipsInMemory ; private boolean isClipsInMemoryChanged = true ; private Storage ( Context context ) { } public static Storage getInstance ( Context context ) { } private String sqliteEscape ( String keyWord ) { } private void open ( ) { } private void close ( ) { } public List < ClipObject > getClipHistory ( ) { } public List < ClipObject > getClipHistory ( int n ) { } public List < ClipObject > getClipHistory ( String queryString ) { } public boolean deleteClipHistoryBefore ( float days ) { isClipsInMemoryChanged = true ; Date date = new Date ( ) ; long timeStamp = ( ( long ) ( ( date . getTime ( ) ) - ( days * 86400000 ) ) ) ; open ( ) ; int row_id = db . delete ( Storage . TABLE_NAME , ( ( ( ( Storage . CLIP_DATE ) + "<'" ) + timeStamp ) + "'" ) , null ) ; Log . v ( Storage . PACKAGE_NAME , "Closed<seq2seq4repair_space>by<seq2seq4repair_space>deleteClipHistoryBefore" ) ; close ( ) ; <START_BUG> refreshAllTypeOfList ( 0 ) ; <END_BUG> if ( row_id == ( - 1 ) ) { Log . e ( "Storage" , ( "write<seq2seq4repair_space>db<seq2seq4repair_space>error:<seq2seq4repair_space>deleteClipHistoryBefore<seq2seq4repair_space>" + days ) ) ; return false ; } return true ; } private boolean deleteClipHistory ( String query ) { } private boolean addClipHistory ( String currentString ) { } public void modifyClip ( String oldClip , String newClip ) { } public void modifyClip ( String oldClip , String newClip , int notUpdateWhich ) { } private void updateSystemClipboard ( boolean alsoStartService ) { } private void refreshAllTypeOfList ( int notUpdateWhich ) { } public class StorageHelper extends SQLiteOpenHelper { private static final String PACKAGE_NAME = "com.catchingnow.tinyclipboardmanager" ; private static final int DATABASE_VERSION = 2 ; private static final String DATABASE_NAME = "clippingnow.db" ; private static final String TABLE_NAME = "cliphistory" ; private static final String CLIP_STRING = "history" ; private static final String CLIP_DATE = "date" ; private static final String TABLE_CREATE = ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>" + ( Storage . StorageHelper . TABLE_NAME ) ) + "<seq2seq4repair_space>(" ) + ( Storage . StorageHelper . CLIP_DATE ) ) + "<seq2seq4repair_space>TIMESTAMP,<seq2seq4repair_space>" ) + ( Storage . StorageHelper . CLIP_STRING ) ) + "<seq2seq4repair_space>TEXT);" ; public StorageHelper ( Context context ) { } @ Override public void onCreate ( SQLiteDatabase db ) { } @ Override public void onUpgrade ( SQLiteDatabase db , int oldVersion , int newVersion ) { } } }

Fix:
refreshAllTypeOfList ( Storage . MAIN_ACTIVITY_VIEW ) ;