Skip to content
Snippets Groups Projects
Commit 28d5f457 authored by Jean Chalard's avatar Jean Chalard
Browse files

Fix an NPE

The code was passing the wrong parameter.

Bug: 8492879
Change-Id: I091d62ca29601e3807eed287c7bdad38bf43a502
parent dae90cfb
No related branches found
No related tags found
No related merge requests found
...@@ -340,8 +340,7 @@ public final class DictionarySettingsFragment extends PreferenceFragment ...@@ -340,8 +340,7 @@ public final class DictionarySettingsFragment extends PreferenceFragment
private void cancelRefresh() { private void cancelRefresh() {
UpdateHandler.unregisterUpdateEventListener(this); UpdateHandler.unregisterUpdateEventListener(this);
final Context context = getActivity(); final Context context = getActivity();
UpdateHandler.cancelUpdate(context, UpdateHandler.cancelUpdate(context, mClientId);
MetadataDbHelper.getMetadataUriAsString(context, mClientId));
stopLoadingAnimation(); stopLoadingAnimation();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment