aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-09-19 14:30:33 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-09-19 14:30:33 +0000
commit010c323769faf9703a84144576ba33eb4410562e (patch)
tree74c2eb03294be10d7d5a23a8ab8ba84ea39bb3b8 /app/src/main
parentcf84a6d431cbf979587722eb725bd736cb487209 (diff)
downloadinfinity-for-reddit-010c323769faf9703a84144576ba33eb4410562e.tar
infinity-for-reddit-010c323769faf9703a84144576ba33eb4410562e.tar.gz
infinity-for-reddit-010c323769faf9703a84144576ba33eb4410562e.tar.bz2
infinity-for-reddit-010c323769faf9703a84144576ba33eb4410562e.tar.lz
infinity-for-reddit-010c323769faf9703a84144576ba33eb4410562e.tar.xz
infinity-for-reddit-010c323769faf9703a84144576ba33eb4410562e.tar.zst
infinity-for-reddit-010c323769faf9703a84144576ba33eb4410562e.zip
Disable showing precise error messages.
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/PostFragment.java12
1 files changed, 1 insertions, 11 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/PostFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/PostFragment.java
index 23cb85bc..67a0b247 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/PostFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/PostFragment.java
@@ -411,8 +411,7 @@ public class PostFragment extends Fragment implements FragmentCommunicator {
} else if(networkState.getStatus().equals(NetworkState.Status.FAILED)) {
mProgressBar.setVisibility(View.GONE);
mFetchPostInfoLinearLayout.setOnClickListener(view -> refresh());
- //showErrorView(R.string.load_posts_error);
- showErrorView(networkState.getMsg());
+ showErrorView(R.string.load_posts_error);
} else {
mProgressBar.setVisibility(View.VISIBLE);
}
@@ -467,15 +466,6 @@ public class PostFragment extends Fragment implements FragmentCommunicator {
}
}
- private void showErrorView(String message) {
- if(activity != null && isAdded()) {
- mProgressBar.setVisibility(View.GONE);
- mFetchPostInfoLinearLayout.setVisibility(View.VISIBLE);
- mFetchPostInfoTextView.setText(message);
- mGlide.load(R.drawable.error_image).into(mFetchPostInfoImageView);
- }
- }
-
@Override
public void changeNSFW(boolean nsfw) {
mPostViewModel.changeNSFW(nsfw);