am 2188cbae: Merge "Fix an NPE"

* commit '2188cbae6351ae463f8b882b1cb6b1b348fad0a2':
  Fix an NPE
This commit is contained in:
Jean Chalard 2013-03-27 23:58:50 -07:00 committed by Android Git Automerger
commit 9bf1dfebd8

View file

@ -340,8 +340,7 @@ public final class DictionarySettingsFragment extends PreferenceFragment
private void cancelRefresh() {
UpdateHandler.unregisterUpdateEventListener(this);
final Context context = getActivity();
UpdateHandler.cancelUpdate(context,
MetadataDbHelper.getMetadataUriAsString(context, mClientId));
UpdateHandler.cancelUpdate(context, mClientId);
stopLoadingAnimation();
}