mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
Fix issue #824
This commit is contained in:
parent
7c1d5a4830
commit
b5f0cc3097
2 changed files with 4 additions and 2 deletions
|
@ -1471,7 +1471,8 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
||||||
boolean autoplaygif = sharedpreferences.getBoolean(context.getString(R.string.SET_AUTO_PLAY_GIG_MEDIA), true);
|
boolean autoplaygif = sharedpreferences.getBoolean(context.getString(R.string.SET_AUTO_PLAY_GIG_MEDIA), true);
|
||||||
if (!fullAttachement || statusToDeal.sensitive) {
|
if (!fullAttachement || statusToDeal.sensitive) {
|
||||||
int defaultHeight = (int) Helper.convertDpToPixel(300, context);
|
int defaultHeight = (int) Helper.convertDpToPixel(300, context);
|
||||||
if (measuredWidth > 0) {
|
int orientation = context.getResources().getConfiguration().orientation;
|
||||||
|
if (orientation == Configuration.ORIENTATION_PORTRAIT && measuredWidth > 0) {
|
||||||
defaultHeight = (int) (measuredWidth * 3) / 4;
|
defaultHeight = (int) (measuredWidth * 3) / 4;
|
||||||
}
|
}
|
||||||
LinearLayoutCompat.LayoutParams lp = new LinearLayoutCompat.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, defaultHeight);
|
LinearLayoutCompat.LayoutParams lp = new LinearLayoutCompat.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, defaultHeight);
|
||||||
|
|
|
@ -8,4 +8,5 @@ Changed:
|
||||||
|
|
||||||
Fixed:
|
Fixed:
|
||||||
- Some settings not properly restored (multiple choices)
|
- Some settings not properly restored (multiple choices)
|
||||||
- Cancel a follow request
|
- Cancel a follow request
|
||||||
|
- Media with a lot of height in landscape
|
Loading…
Reference in a new issue