diff --git a/app/build.gradle b/app/build.gradle index 15a51de549..97baddefa3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,8 +10,8 @@ android { applicationId 'com.discord' minSdkVersion 21 targetSdkVersion 30 - versionCode 101106 - versionName "101.6 - Beta" + versionCode 101107 + versionName "101.7 - Beta" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e2d8459c8e..fcfbaecb5a 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ - + diff --git a/app/src/main/java/com/discord/widgets/chat/list/InlineMediaView.java b/app/src/main/java/com/discord/widgets/chat/list/InlineMediaView.java index 6a3a78a603..fcccd12f3b 100644 --- a/app/src/main/java/com/discord/widgets/chat/list/InlineMediaView.java +++ b/app/src/main/java/com/discord/widgets/chat/list/InlineMediaView.java @@ -1,6 +1,7 @@ package com.discord.widgets.chat.list; import android.content.Context; +import android.os.Build; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; @@ -418,6 +419,10 @@ public final class InlineMediaView extends CardView implements View.OnAttachStat return viewParams3 != null ? viewParams3.getAutoPlayGifs() : this.storeUserSettings.getIsAutoPlayGifsEnabled(); } + private final boolean shouldAutoPlayGIFVs() { + return Build.VERSION.SDK_INT <= 30; + } + private final void updateUI(RenderableEmbedMedia renderableEmbedMedia, String str, EmbedType embedType, Integer num, Integer num2, String str2) { resetViews(); this.compositeSubscription.unsubscribe(); @@ -462,9 +467,10 @@ public final class InlineMediaView extends CardView implements View.OnAttachStat m.checkNotNullExpressionValue(J, "eventSubject.onBackpressureBuffer()"); ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(J, this, null, 2, null), InlineMediaView.class, (Context) null, new InlineMediaView$updateUI$3(this), (Function1) null, (Function0) null, (Function0) null, new InlineMediaView$updateUI$4(this), 58, (Object) null); if (embedType == embedType2) { + boolean shouldAutoPlayGIFVs = shouldAutoPlayGIFVs(); PlayerView playerView2 = this.binding.f; m.checkNotNullExpressionValue(playerView2, "binding.inlineMediaPlayerView"); - AppMediaPlayer.b(appMediaPlayer, O, true, true, 0, playerView2, null, 40); + AppMediaPlayer.b(appMediaPlayer, O, shouldAutoPlayGIFVs, true, 0, playerView2, null, 40); appMediaPlayer.d(0.0f); } else { appMediaPlayer.d(1.0f); diff --git a/app/src/main/java/com/discord/widgets/settings/WidgetSettings.java b/app/src/main/java/com/discord/widgets/settings/WidgetSettings.java index 92cc73298a..d763636b9b 100644 --- a/app/src/main/java/com/discord/widgets/settings/WidgetSettings.java +++ b/app/src/main/java/com/discord/widgets/settings/WidgetSettings.java @@ -346,7 +346,7 @@ public final class WidgetSettings extends AppFragment implements OnTabSelectedLi TextView textView = binding.f; m.checkNotNullExpressionValue(textView, "appInfoHeader"); String string = getString(R.string.app_information); - textView.setText(string + " - 101.6 - Beta (101106)"); + textView.setText(string + " - 101.7 - Beta (101107)"); binding.B.setOnClickListener(new WidgetSettings$onViewBound$$inlined$with$lambda$3(this)); binding.u.setOnClickListener(WidgetSettings$onViewBound$1$5.INSTANCE); binding.q.setOnClickListener(WidgetSettings$onViewBound$1$6.INSTANCE); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 9a9d1b2e5f..b34b67673b 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1475,7 +1475,7 @@ Select a color Transparency Use Default - 7fda0ac2434f4424ba121d532be29be8 + b863f8696c324e8aaa5877a8ec4cff2a Coming Soon Slash command application {applicationName} {applicationName} application