version 1.8.13, bug fix, layout fix

This commit is contained in:
nuclearfog 2021-02-23 19:40:40 +01:00
parent 994f680a11
commit 8daf1fa1a5
No known key found for this signature in database
GPG Key ID: D5490E4A81F97B14
4 changed files with 23 additions and 26 deletions

View File

@ -9,8 +9,8 @@ android {
applicationId 'org.nuclearfog.twidda'
minSdkVersion 16
targetSdkVersion 30
versionCode 36
versionName '1.8.12'
versionCode 37
versionName '1.8.13'
// limiting language support for smaller APK size
resConfigs 'en', 'de-rDE', 'zh-rCN'
vectorDrawables.useSupportLibrary true

View File

@ -348,6 +348,7 @@ public class MediaViewer extends MediaActivity implements OnImageClickListener,
public void onPrepared(MediaPlayer mp) {
// configure to play GIF
if (type == MEDIAVIEWER_ANGIF) {
loadingCircle.setVisibility(INVISIBLE);
mp.setLooping(true);
mp.start();
}

View File

@ -245,6 +245,8 @@ public class TweetEditor extends MediaActivity implements OnClickListener, Dialo
previewBtn.setVisibility(VISIBLE);
mediaBtn.setVisibility(GONE);
mediaPath.add(path);
} else {
Toast.makeText(this, R.string.info_cant_add_video, LENGTH_SHORT).show();
}
break;

View File

@ -1,31 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/CardViewStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/imageitem_layout_margin"
style="@style/CardViewStyle">
android:layout_height="match_parent"
android:layout_margin="@dimen/imageitem_layout_margin">
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/item_image_preview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/image_preview" />
<ImageView
android:id="@+id/item_image_preview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/image_preview" />
<ImageButton
android:id="@+id/item_image_save"
style="@style/RoundButton"
android:layout_width="@dimen/imageitem_button_size"
android:layout_height="@dimen/imageitem_button_size"
android:layout_gravity="top|end"
android:layout_margin="@dimen/imageitem_button_margin"
android:contentDescription="@string/item_image_save"
android:padding="@dimen/imageitem_drawable_padding"
android:visibility="gone" />
</FrameLayout>
<ImageButton
android:id="@+id/item_image_save"
style="@style/RoundButton"
android:layout_width="@dimen/imageitem_button_size"
android:layout_height="@dimen/imageitem_button_size"
android:layout_gravity="top|end"
android:layout_margin="@dimen/imageitem_button_margin"
android:contentDescription="@string/item_image_save"
android:padding="@dimen/imageitem_drawable_padding"
android:visibility="invisible" />
</androidx.cardview.widget.CardView>