diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-29 18:35:26 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-29 18:35:26 +0200 |
commit | c4102992ae219d0cb9a8afecd09582500b361c6c (patch) | |
tree | 3cb1efd6223a055972b1408783a7ab05c4af16f7 /app/src/main/java/com/wireguard/android/preference | |
parent | 219f4e80166800a9a44f84f9cc097fbed90e225e (diff) |
MonkeyedSnackbar: work around Harsh's broken phone
I think I'd probably like to revert this, since presumably there's a
good reason in the first place why the support lib disables animations
when accessibility services are turned on?
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/java/com/wireguard/android/preference')
-rw-r--r-- | app/src/main/java/com/wireguard/android/preference/LogExporterPreference.java | 3 | ||||
-rw-r--r-- | app/src/main/java/com/wireguard/android/preference/ZipExporterPreference.java | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/src/main/java/com/wireguard/android/preference/LogExporterPreference.java b/app/src/main/java/com/wireguard/android/preference/LogExporterPreference.java index a96cb9c8..2c620f7e 100644 --- a/app/src/main/java/com/wireguard/android/preference/LogExporterPreference.java +++ b/app/src/main/java/com/wireguard/android/preference/LogExporterPreference.java @@ -20,6 +20,7 @@ import com.wireguard.android.Application; import com.wireguard.android.R; import com.wireguard.android.util.ExceptionLoggers; import com.wireguard.android.util.FragmentUtils; +import com.wireguard.android.widget.MonkeyedSnackbar; import java.io.BufferedReader; import java.io.File; @@ -79,7 +80,7 @@ public class LogExporterPreference extends Preference { final String error = ExceptionLoggers.unwrapMessage(throwable); final String message = getContext().getString(R.string.log_export_error, error); Log.e(TAG, message, throwable); - Snackbar.make( + MonkeyedSnackbar.make( FragmentUtils.getPrefActivity(this).findViewById(android.R.id.content), message, Snackbar.LENGTH_LONG).show(); setEnabled(true); diff --git a/app/src/main/java/com/wireguard/android/preference/ZipExporterPreference.java b/app/src/main/java/com/wireguard/android/preference/ZipExporterPreference.java index 140cffa3..10a9edd6 100644 --- a/app/src/main/java/com/wireguard/android/preference/ZipExporterPreference.java +++ b/app/src/main/java/com/wireguard/android/preference/ZipExporterPreference.java @@ -21,6 +21,7 @@ import com.wireguard.android.R; import com.wireguard.android.model.Tunnel; import com.wireguard.android.util.ExceptionLoggers; import com.wireguard.android.util.FragmentUtils; +import com.wireguard.android.widget.MonkeyedSnackbar; import com.wireguard.config.Config; import java.io.File; @@ -88,7 +89,7 @@ public class ZipExporterPreference extends Preference { final String error = ExceptionLoggers.unwrapMessage(throwable); final String message = getContext().getString(R.string.zip_export_error, error); Log.e(TAG, message, throwable); - Snackbar.make( + MonkeyedSnackbar.make( FragmentUtils.getPrefActivity(this).findViewById(android.R.id.content), message, Snackbar.LENGTH_LONG).show(); setEnabled(true); |