aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-12-27 06:44:16 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-12-27 06:44:16 +0000
commitaefc82803624a13861449ef089f1fe9f9b595be8 (patch)
treec833b70bb6b8d80f6e02d88501d363bdf754c54c /app/src/main/java
parent5bf1d342f6f30699f02a985cc8b16b6da90d4688 (diff)
downloadinfinity-for-reddit-aefc82803624a13861449ef089f1fe9f9b595be8.tar
infinity-for-reddit-aefc82803624a13861449ef089f1fe9f9b595be8.tar.gz
infinity-for-reddit-aefc82803624a13861449ef089f1fe9f9b595be8.tar.bz2
infinity-for-reddit-aefc82803624a13861449ef089f1fe9f9b595be8.tar.lz
infinity-for-reddit-aefc82803624a13861449ef089f1fe9f9b595be8.tar.xz
infinity-for-reddit-aefc82803624a13861449ef089f1fe9f9b595be8.tar.zst
infinity-for-reddit-aefc82803624a13861449ef089f1fe9f9b595be8.zip
Change Markdown text style. Reduce the sensitivity of sliding right to go back from ViewPostDetailActivity to prevent go back when sliding tables.
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewPostDetailActivity.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewPostDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewPostDetailActivity.java
index d658a626..c51c2bc5 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewPostDetailActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewPostDetailActivity.java
@@ -37,6 +37,7 @@ import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.google.android.material.snackbar.Snackbar;
import com.livefront.bridge.Bridge;
import com.r0adkll.slidr.Slidr;
+import com.r0adkll.slidr.model.SlidrConfig;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
@@ -192,7 +193,8 @@ public class ViewPostDetailActivity extends BaseActivity implements FlairBottomS
EventBus.getDefault().register(this);
if (mSharedPreferences.getBoolean(SharedPreferencesUtils.SWIPE_RIGHT_TO_GO_BACK_FROM_POST_DETAIL, true)) {
- Slidr.attach(this);
+ SlidrConfig config = new SlidrConfig.Builder().sensitivity(0.1f).build();
+ Slidr.attach(this, config);
}
Resources resources = getResources();