aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-02-01 07:00:14 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-02-01 07:00:14 +0000
commite9b937eb9f11f4f7fc40c0c7737d82d00f391749 (patch)
treee338f36911bf01dbfc11524b46871d255f4c2390 /app/src/main/java
parentc9f88caa647c116327815d8b0234eba2abf9e650 (diff)
downloadinfinity-for-reddit-e9b937eb9f11f4f7fc40c0c7737d82d00f391749.tar
infinity-for-reddit-e9b937eb9f11f4f7fc40c0c7737d82d00f391749.tar.gz
infinity-for-reddit-e9b937eb9f11f4f7fc40c0c7737d82d00f391749.tar.bz2
infinity-for-reddit-e9b937eb9f11f4f7fc40c0c7737d82d00f391749.tar.lz
infinity-for-reddit-e9b937eb9f11f4f7fc40c0c7737d82d00f391749.tar.xz
infinity-for-reddit-e9b937eb9f11f4f7fc40c0c7737d82d00f391749.tar.zst
infinity-for-reddit-e9b937eb9f11f4f7fc40c0c7737d82d00f391749.zip
Use a dirty method to fix user info and subscribe chip not shown in ViewUserDetailActivity. The problem is caused by CommentsListingFragment. So weird.
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/fragments/CommentsListingFragment.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/CommentsListingFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/CommentsListingFragment.java
index 9183fc1a..3675a8ea 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/CommentsListingFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/CommentsListingFragment.java
@@ -9,6 +9,7 @@ import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
+import android.os.Handler;
import android.view.HapticFeedbackConstants;
import android.view.LayoutInflater;
import android.view.View;
@@ -247,7 +248,7 @@ public class CommentsListingFragment extends Fragment implements FragmentCommuni
mAccessToken = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCESS_TOKEN, null);
- bindView(resources);
+ new Handler().postDelayed(() -> bindView(resources), 0);
return rootView;
}