From eb696d288ea19d3d64f932fd017da7d7187ba6e1 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Fri, 25 May 2012 18:39:27 +0900 Subject: [PATCH] Wipe the application cache selectively Bug: 6537051 Change-Id: I839d0a98c729f3604582946d70c0140a5cff7dcf --- .../latin/DictionaryPackInstallBroadcastReceiver.java | 2 ++ .../android/inputmethod/latin/TargetApplicationGetter.java | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java b/java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java index 9d30af84b..9c37d7673 100644 --- a/java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java +++ b/java/src/com/android/inputmethod/latin/DictionaryPackInstallBroadcastReceiver.java @@ -51,6 +51,8 @@ public class DictionaryPackInstallBroadcastReceiver extends BroadcastReceiver { if (null == packageUri) return; // No package name : we can't do anything final String packageName = packageUri.getSchemeSpecificPart(); if (null == packageName) return; + // TODO: do this in a more appropriate place + TargetApplicationGetter.removeApplicationInfoCache(packageName); final PackageInfo packageInfo; try { packageInfo = manager.getPackageInfo(packageName, PackageManager.GET_PROVIDERS); diff --git a/java/src/com/android/inputmethod/latin/TargetApplicationGetter.java b/java/src/com/android/inputmethod/latin/TargetApplicationGetter.java index 46300b479..4fb2e9704 100644 --- a/java/src/com/android/inputmethod/latin/TargetApplicationGetter.java +++ b/java/src/com/android/inputmethod/latin/TargetApplicationGetter.java @@ -31,7 +31,9 @@ public class TargetApplicationGetter extends AsyncTask