mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-01-12 19:27:12 +01:00
Fixed bugs when posting without a flair specified. Minor UI tweaks.
This commit is contained in:
parent
216228cf02
commit
0d5cf54af5
@ -159,7 +159,6 @@ class SubmitPost {
|
|||||||
} else {
|
} else {
|
||||||
submitPostListener.submitFailed(response.message());
|
submitPostListener.submitFailed(response.message());
|
||||||
}
|
}
|
||||||
Log.i("image", "dddd" + response.code());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -199,7 +198,10 @@ class SubmitPost {
|
|||||||
params.put(RedditUtils.VIDEO_POSTER_URL_KEY, posterUrl);
|
params.put(RedditUtils.VIDEO_POSTER_URL_KEY, posterUrl);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
params.put(RedditUtils.FLAIR_TEXT_KEY, flair);
|
|
||||||
|
if(flair != null) {
|
||||||
|
params.put(RedditUtils.FLAIR_TEXT_KEY, flair);
|
||||||
|
}
|
||||||
params.put(RedditUtils.SPOILER_KEY, Boolean.toString(isSpoiler));
|
params.put(RedditUtils.SPOILER_KEY, Boolean.toString(isSpoiler));
|
||||||
params.put(RedditUtils.NSFW_KEY, Boolean.toString(isNSFW));
|
params.put(RedditUtils.NSFW_KEY, Boolean.toString(isNSFW));
|
||||||
|
|
||||||
@ -297,7 +299,6 @@ class SubmitPost {
|
|||||||
} else {
|
} else {
|
||||||
uploadImageListener.uploadFailed(response.message());
|
uploadImageListener.uploadFailed(response.message());
|
||||||
}
|
}
|
||||||
Log.i("image", "dddd" + response.body());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -157,9 +157,8 @@
|
|||||||
android:layout_marginStart="16dp"
|
android:layout_marginStart="16dp"
|
||||||
android:text="@string/spoiler"
|
android:text="@string/spoiler"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:textColor="@color/primaryTextColor"
|
android:textColor="@android:color/white"
|
||||||
android:padding="4dp"
|
android:padding="4dp"
|
||||||
android:background="@color/textColorPrimaryDark"
|
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:lib_setRadius="3dp"
|
app:lib_setRadius="3dp"
|
||||||
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
||||||
@ -173,9 +172,8 @@
|
|||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:layout_marginStart="16dp"
|
android:layout_marginStart="16dp"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:textColor="@color/primaryTextColor"
|
android:textColor="@android:color/white"
|
||||||
android:padding="4dp"
|
android:padding="4dp"
|
||||||
android:background="@color/textColorPrimaryDark"
|
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:lib_setRadius="3dp"
|
app:lib_setRadius="3dp"
|
||||||
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
||||||
@ -236,7 +234,6 @@
|
|||||||
android:id="@+id/image_view_no_preview_link_item_post"
|
android:id="@+id/image_view_no_preview_link_item_post"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="150dp"
|
android:layout_height="150dp"
|
||||||
android:layout_marginTop="16dp"
|
|
||||||
android:scaleType="center"
|
android:scaleType="center"
|
||||||
android:src="@drawable/ic_link"
|
android:src="@drawable/ic_link"
|
||||||
android:tint="@android:color/tab_indicator_text"
|
android:tint="@android:color/tab_indicator_text"
|
||||||
|
@ -149,9 +149,8 @@
|
|||||||
android:layout_marginStart="16dp"
|
android:layout_marginStart="16dp"
|
||||||
android:text="@string/spoiler"
|
android:text="@string/spoiler"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:textColor="@color/primaryTextColor"
|
android:textColor="@android:color/white"
|
||||||
android:padding="4dp"
|
android:padding="4dp"
|
||||||
android:background="@color/textColorPrimaryDark"
|
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:lib_setRadius="3dp"
|
app:lib_setRadius="3dp"
|
||||||
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
||||||
@ -165,9 +164,8 @@
|
|||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:layout_marginStart="16dp"
|
android:layout_marginStart="16dp"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:textColor="@color/primaryTextColor"
|
android:textColor="@android:color/white"
|
||||||
android:padding="4dp"
|
android:padding="4dp"
|
||||||
android:background="@color/textColorPrimaryDark"
|
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:lib_setRadius="3dp"
|
app:lib_setRadius="3dp"
|
||||||
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
app:lib_setRoundedBorderColor="@color/textColorPrimaryDark"
|
||||||
@ -229,7 +227,6 @@
|
|||||||
android:id="@+id/image_view_no_preview_link_item_post_detail"
|
android:id="@+id/image_view_no_preview_link_item_post_detail"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="150dp"
|
android:layout_height="150dp"
|
||||||
android:layout_marginTop="16dp"
|
|
||||||
android:background="@color/grey"
|
android:background="@color/grey"
|
||||||
android:scaleType="center"
|
android:scaleType="center"
|
||||||
android:src="@drawable/ic_link"
|
android:src="@drawable/ic_link"
|
||||||
|
Loading…
Reference in New Issue
Block a user