mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2025-10-29 19:44:40 +00:00
Fix crash on Android 5: Don't define android:visibility="gone" on LoadingIndicator CustomizeThemeActivity and ViewVideoActivity.
This commit is contained in:
parent
587bb95413
commit
035a08f74e
@ -153,6 +153,8 @@ public class CustomizeThemeActivity extends BaseActivity {
|
||||
themeName = savedInstanceState.getString(THEME_NAME_STATE);
|
||||
}
|
||||
|
||||
binding.progressBarCustomizeThemeActivity.setVisibility(View.GONE);
|
||||
|
||||
int androidVersion = Build.VERSION.SDK_INT;
|
||||
|
||||
if (customThemeSettingsItems == null) {
|
||||
|
||||
@ -793,6 +793,7 @@ public class ViewVideoActivity extends AppCompatActivity implements CustomFontRe
|
||||
}
|
||||
});
|
||||
} else {
|
||||
binding.getLoadingIndicator().setVisibility(View.GONE);
|
||||
if (videoType == VIDEO_TYPE_NORMAL) {
|
||||
// Prepare the player with the source.
|
||||
player.prepare();
|
||||
|
||||
@ -46,7 +46,6 @@
|
||||
android:id="@+id/progress_bar_customize_theme_activity"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:visibility="gone" />
|
||||
android:layout_gravity="center" />
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
@ -33,8 +33,7 @@
|
||||
android:id="@+id/progress_bar_view_video_activity"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:visibility="gone" />
|
||||
android:layout_gravity="center" />
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
|
||||
|
||||
@ -42,8 +42,7 @@
|
||||
android:id="@+id/progress_bar_view_video_activity"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:visibility="gone" />
|
||||
android:layout_gravity="center" />
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user