重灌

要使舊資料無效並重新啟動現有載入器,可以使用 restartLoader() 方法:

private void reload() {
    getLoaderManager().reastartLoader(LOADER_ID, Bundle.EMPTY, this);
}