Merge "Fix an NPE"

main
Jean Chalard 2013-03-28 06:56:49 +00:00 committed by Android (Google) Code Review
commit 2188cbae63
1 changed files with 1 additions and 2 deletions

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();
}