Merge "Delete package directory when app is uninstalled." into rvc-dev

This commit is contained in:
Trung Lam
2020-02-25 21:43:03 +00:00
committed by Android (Google) Code Review

View File

@@ -26,6 +26,7 @@ import android.annotation.NonNull;
import android.annotation.Nullable; import android.annotation.Nullable;
import android.annotation.UserIdInt; import android.annotation.UserIdInt;
import android.content.LocusId; import android.content.LocusId;
import android.os.FileUtils;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.ArrayMap; import android.util.ArrayMap;
@@ -251,5 +252,6 @@ public class PackageData {
void onDestroy() { void onDestroy() {
mEventStore.onDestroy(); mEventStore.onDestroy();
mConversationStore.onDestroy(); mConversationStore.onDestroy();
FileUtils.deleteContentsAndDir(mPackageDataDir);
} }
} }