diff options
Diffstat (limited to 'app/src/main/java/com/wireguard/android/fragment')
3 files changed, 7 insertions, 10 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 14150150..f89ece75 100644 --- a/app/src/main/java/com/wireguard/android/fragment/BaseFragment.java +++ b/app/src/main/java/com/wireguard/android/fragment/BaseFragment.java @@ -27,7 +27,6 @@ import com.wireguard.android.databinding.TunnelListItemBinding; import com.wireguard.android.model.Tunnel; import com.wireguard.android.model.Tunnel.State; import com.wireguard.android.util.ExceptionLoggers; -import com.wireguard.android.widget.MonkeyedSnackbar; /** * Base class for fragments that need to know the currently-selected tunnel. Only does anything when @@ -119,7 +118,7 @@ public abstract class BaseFragment extends Fragment implements OnSelectedTunnelC final String message = getContext().getString(messageResId, error); final View view = getView(); if (view != null) - MonkeyedSnackbar.make(view, message, Snackbar.LENGTH_LONG).show(); + Snackbar.make(view, message, Snackbar.LENGTH_LONG).show(); else Toast.makeText(getContext(), message, Toast.LENGTH_LONG).show(); Log.e(TAG, message, throwable); diff --git a/app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java b/app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java index b5c3f0ad..0d432a20 100644 --- a/app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java +++ b/app/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.java @@ -32,7 +32,6 @@ import com.wireguard.android.fragment.AppListDialogFragment.AppExclusionListener import com.wireguard.android.model.Tunnel; import com.wireguard.android.model.TunnelManager; import com.wireguard.android.util.ExceptionLoggers; -import com.wireguard.android.widget.MonkeyedSnackbar; import com.wireguard.config.Attribute; import com.wireguard.config.Config; import com.wireguard.config.Peer; @@ -73,7 +72,7 @@ public class TunnelEditorFragment extends BaseFragment implements AppExclusionLi message = getString(R.string.config_save_error, savedTunnel.getName(), error); Log.e(TAG, message, throwable); if (binding != null) { - MonkeyedSnackbar.make(binding.mainContainer, message, Snackbar.LENGTH_LONG).show(); + Snackbar.make(binding.mainContainer, message, Snackbar.LENGTH_LONG).show(); } } } @@ -196,7 +195,7 @@ public class TunnelEditorFragment extends BaseFragment implements AppExclusionLi final String tunnelName = tunnel == null ? binding.getConfig().getName() : tunnel.getName(); final String message = getString(R.string.config_save_error, tunnelName, error); Log.e(TAG, message, e); - MonkeyedSnackbar.make(binding.mainContainer, error, Snackbar.LENGTH_LONG).show(); + Snackbar.make(binding.mainContainer, error, Snackbar.LENGTH_LONG).show(); return false; } if (tunnel == null) { @@ -249,7 +248,7 @@ public class TunnelEditorFragment extends BaseFragment implements AppExclusionLi message = getString(R.string.tunnel_create_error, error); Log.e(TAG, message, throwable); if (binding != null) { - MonkeyedSnackbar.make(binding.mainContainer, message, Snackbar.LENGTH_LONG).show(); + Snackbar.make(binding.mainContainer, message, Snackbar.LENGTH_LONG).show(); } } } @@ -268,7 +267,7 @@ public class TunnelEditorFragment extends BaseFragment implements AppExclusionLi message = getString(R.string.tunnel_rename_error, error); Log.e(TAG, message, throwable); if (binding != null) { - MonkeyedSnackbar.make(binding.mainContainer, message, Snackbar.LENGTH_LONG).show(); + Snackbar.make(binding.mainContainer, message, Snackbar.LENGTH_LONG).show(); } } } diff --git a/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java b/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java index f9634eba..afc00530 100644 --- a/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java +++ b/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java @@ -40,7 +40,6 @@ import com.wireguard.android.databinding.TunnelListItemBinding; import com.wireguard.android.model.Tunnel; import com.wireguard.android.util.ExceptionLoggers; import com.wireguard.android.util.ObservableSortedKeyedList; -import com.wireguard.android.widget.MonkeyedSnackbar; import com.wireguard.android.widget.MultiselectableRelativeLayout; import com.wireguard.android.widget.fab.FloatingActionsMenuRecyclerViewScrollListener; import com.wireguard.config.Config; @@ -290,7 +289,7 @@ public class TunnelListFragment extends BaseFragment { Log.e(TAG, message, throwable); } if (binding != null) { - MonkeyedSnackbar.make(binding.mainContainer, message, Snackbar.LENGTH_LONG).show(); + Snackbar.make(binding.mainContainer, message, Snackbar.LENGTH_LONG).show(); } } @@ -316,7 +315,7 @@ public class TunnelListFragment extends BaseFragment { tunnels.size(), tunnels.size() + throwables.size()); if (binding != null) - MonkeyedSnackbar.make(binding.mainContainer, message, Snackbar.LENGTH_LONG).show(); + Snackbar.make(binding.mainContainer, message, Snackbar.LENGTH_LONG).show(); } @Override |