diff options
Diffstat (limited to 'app/src/main/java/com/wireguard/android/fragment/BaseFragment.java')
-rw-r--r-- | app/src/main/java/com/wireguard/android/fragment/BaseFragment.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/com/wireguard/android/fragment/BaseFragment.java b/app/src/main/java/com/wireguard/android/fragment/BaseFragment.java index 11af26e4..23bf44e7 100644 --- a/app/src/main/java/com/wireguard/android/fragment/BaseFragment.java +++ b/app/src/main/java/com/wireguard/android/fragment/BaseFragment.java @@ -113,12 +113,12 @@ public abstract class BaseFragment extends Fragment implements OnSelectedTunnelC return; final String error = ErrorMessages.get(throwable); final int messageResId = checked ? R.string.error_up : R.string.error_down; - final String message = getContext().getString(messageResId, error); + final String message = requireContext().getString(messageResId, error); final View view = getView(); if (view != null) Snackbar.make(view, message, Snackbar.LENGTH_LONG).show(); else - Toast.makeText(getContext(), message, Toast.LENGTH_LONG).show(); + Toast.makeText(requireContext(), message, Toast.LENGTH_LONG).show(); Log.e(TAG, message, throwable); }); } |