[mobile] fix build

pull/123/head
FongMi 3 years ago
parent 456df88c4e
commit a9d7b05797
  1. 10
      app/src/mobile/java/com/fongmi/android/tv/Product.java
  2. 4
      app/src/mobile/res/layout/activity_detail.xml
  3. 15
      app/src/mobile/res/values/styles.xml

@ -0,0 +1,10 @@
package com.fongmi.android.tv;
import android.content.res.Resources;
public class Product {
public static Resources hackResources(Resources resources) {
return resources;
}
}

@ -15,7 +15,7 @@
<com.google.android.exoplayer2.ui.StyledPlayerView
android:id="@+id/surface"
style="@style/ExoStyle"
style="@style/Player.Vod"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"
@ -23,7 +23,7 @@
<com.google.android.exoplayer2.ui.StyledPlayerView
android:id="@+id/texture"
style="@style/ExoStyle"
style="@style/Player.Vod"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"

@ -14,21 +14,6 @@
<item name="bottomSheetDialogTheme">@style/BottomSheetDialog</item>
</style>
<style name="VodStyle">
<item name="cornerSize">8dp</item>
<item name="cornerFamily">rounded</item>
</style>
<style name="ExoStyle">
<item name="auto_show">false</item>
<item name="resize_mode">fit</item>
<item name="use_artwork">true</item>
<item name="use_controller">false</item>
<item name="animation_enabled">false</item>
<item name="default_artwork">@drawable/radio</item>
<item name="keep_content_on_player_reset">true</item>
</style>
<style name="BottomSheetModal" parent="Widget.Design.BottomSheet.Modal">
<item name="android:background">@drawable/shape_bottom_sheet</item>
</style>

Loading…
Cancel
Save