mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-10 20:57:25 +01:00
Remove setting mFetchPostInfoTextView's layout params in PostFragment.
This commit is contained in:
parent
7ebb6efdc4
commit
fda2c142c8
@ -30,7 +30,6 @@ import android.widget.Toast;
|
|||||||
import androidx.annotation.DimenRes;
|
import androidx.annotation.DimenRes;
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
|
||||||
import androidx.core.content.res.ResourcesCompat;
|
import androidx.core.content.res.ResourcesCompat;
|
||||||
import androidx.fragment.app.Fragment;
|
import androidx.fragment.app.Fragment;
|
||||||
import androidx.lifecycle.ViewModelProvider;
|
import androidx.lifecycle.ViewModelProvider;
|
||||||
@ -650,12 +649,6 @@ public class PostFragment extends Fragment implements FragmentCommunicator {
|
|||||||
usage = PostFilterUsage.USER_TYPE;
|
usage = PostFilterUsage.USER_TYPE;
|
||||||
nameOfUsage = username;
|
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,
|
String sort = mSortTypeSharedPreferences.getString(SharedPreferencesUtils.SORT_TYPE_USER_POST_BASE + username,
|
||||||
mSharedPreferences.getString(SharedPreferencesUtils.USER_DEFAULT_SORT_TYPE, SortType.Type.NEW.name()));
|
mSharedPreferences.getString(SharedPreferencesUtils.USER_DEFAULT_SORT_TYPE, SortType.Type.NEW.name()));
|
||||||
if (sort.equals(SortType.Type.CONTROVERSIAL.name()) || sort.equals(SortType.Type.TOP.name())) {
|
if (sort.equals(SortType.Type.CONTROVERSIAL.name()) || sort.equals(SortType.Type.TOP.name())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user