diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-10-10 14:12:31 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-10-10 14:12:31 +0000 |
commit | 9e5b5c78e25ce0f7c1237a558a538a9ee0c246d1 (patch) | |
tree | 90823e129a102518a3d7267401b1d9de2a59839c /app/src/main/java | |
parent | 43b9abd6ee455158553fbbc70df3c27eedd22b21 (diff) | |
download | infinity-for-reddit-9e5b5c78e25ce0f7c1237a558a538a9ee0c246d1.tar infinity-for-reddit-9e5b5c78e25ce0f7c1237a558a538a9ee0c246d1.tar.gz infinity-for-reddit-9e5b5c78e25ce0f7c1237a558a538a9ee0c246d1.tar.bz2 infinity-for-reddit-9e5b5c78e25ce0f7c1237a558a538a9ee0c246d1.tar.lz infinity-for-reddit-9e5b5c78e25ce0f7c1237a558a538a9ee0c246d1.tar.xz infinity-for-reddit-9e5b5c78e25ce0f7c1237a558a538a9ee0c246d1.tar.zst infinity-for-reddit-9e5b5c78e25ce0f7c1237a558a538a9ee0c246d1.zip |
Refresh in WebViewActivity.
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/WebViewActivity.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/WebViewActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/WebViewActivity.java index 54106401..8945e758 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/WebViewActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/WebViewActivity.java @@ -22,7 +22,6 @@ import androidx.appcompat.widget.Toolbar; import androidx.coordinatorlayout.widget.CoordinatorLayout; import com.google.android.material.appbar.AppBarLayout; -import com.r0adkll.slidr.Slidr; import javax.inject.Inject; import javax.inject.Named; @@ -33,7 +32,6 @@ import ml.docilealligator.infinityforreddit.Infinity; import ml.docilealligator.infinityforreddit.R; import ml.docilealligator.infinityforreddit.customtheme.CustomThemeWrapper; import ml.docilealligator.infinityforreddit.customviews.LollipopBugFixedWebView; -import ml.docilealligator.infinityforreddit.utils.SharedPreferencesUtils; import ml.docilealligator.infinityforreddit.utils.Utils; public class WebViewActivity extends BaseActivity { @@ -74,10 +72,6 @@ public class WebViewActivity extends BaseActivity { applyCustomTheme(); - if (mSharedPreferences.getBoolean(SharedPreferencesUtils.SWIPE_RIGHT_TO_GO_BACK, true)) { - Slidr.attach(this); - } - setSupportActionBar(toolbar); webView.getSettings().setJavaScriptEnabled(true); @@ -131,6 +125,9 @@ public class WebViewActivity extends BaseActivity { if (item.getItemId() == android.R.id.home) { finish(); return true; + } else if (item.getItemId() == R.id.action_refresh_web_view_activity) { + webView.reload(); + return true; } else if (item.getItemId() == R.id.action_share_link_web_view_activity) { try { Intent intent = new Intent(Intent.ACTION_SEND); |