Fix an NPE

The code was passing the wrong parameter.

Bug: 8492879
Change-Id: I091d62ca29601e3807eed287c7bdad38bf43a502
main
Jean Chalard 2013-03-28 15:08:05 +09:00
parent dae90cfb01
commit 28d5f4577f
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();
}