diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-06-11 07:05:56 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-06-11 07:05:56 +0000 |
commit | fda2c142c812a48ca51c59d2b626bd4f3262193c (patch) | |
tree | b5dbc061dbbf8aca39e2ed1d2ba685b50ddb7d27 /app/src/main | |
parent | 7ebb6efdc46b53cc9e33917bbc5afbec3e77c6ee (diff) | |
download | infinity-for-reddit-fda2c142c812a48ca51c59d2b626bd4f3262193c.tar infinity-for-reddit-fda2c142c812a48ca51c59d2b626bd4f3262193c.tar.gz infinity-for-reddit-fda2c142c812a48ca51c59d2b626bd4f3262193c.tar.bz2 infinity-for-reddit-fda2c142c812a48ca51c59d2b626bd4f3262193c.tar.lz infinity-for-reddit-fda2c142c812a48ca51c59d2b626bd4f3262193c.tar.xz infinity-for-reddit-fda2c142c812a48ca51c59d2b626bd4f3262193c.tar.zst infinity-for-reddit-fda2c142c812a48ca51c59d2b626bd4f3262193c.zip |
Remove setting mFetchPostInfoTextView's layout params in PostFragment.
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java index a1edea83..f7d04c3d 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/PostFragment.java @@ -30,7 +30,6 @@ import android.widget.Toast; import androidx.annotation.DimenRes; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; -import androidx.coordinatorlayout.widget.CoordinatorLayout; import androidx.core.content.res.ResourcesCompat; import androidx.fragment.app.Fragment; import androidx.lifecycle.ViewModelProvider; @@ -650,12 +649,6 @@ public class PostFragment extends Fragment implements FragmentCommunicator { usage = PostFilterUsage.USER_TYPE; nameOfUsage = username; - if (where != null && where.equals(PostDataSource.USER_WHERE_SUBMITTED)) { - CoordinatorLayout.LayoutParams params = (CoordinatorLayout.LayoutParams) mFetchPostInfoLinearLayout.getLayoutParams(); - params.height = ViewGroup.LayoutParams.WRAP_CONTENT; - mFetchPostInfoLinearLayout.setLayoutParams(params); - } - String sort = mSortTypeSharedPreferences.getString(SharedPreferencesUtils.SORT_TYPE_USER_POST_BASE + username, mSharedPreferences.getString(SharedPreferencesUtils.USER_DEFAULT_SORT_TYPE, SortType.Type.NEW.name())); if (sort.equals(SortType.Type.CONTROVERSIAL.name()) || sort.equals(SortType.Type.TOP.name())) { |