pull/123/head
FongMi 3 years ago
parent c7df31a471
commit 627757409c
  1. 6
      app/src/leanback/java/com/fongmi/android/tv/ui/activity/HomeActivity.java
  2. 6
      app/src/leanback/res/layout/view_controller_live.xml

@ -71,7 +71,6 @@ public class HomeActivity extends BaseActivity implements CustomTitleView.Listen
LiveConfig.get().init();
ApiConfig.get().init().load(getCallback());
Updater.create(this).start();
Notify.progress(this);
Server.get().start();
setRecyclerView();
setViewModel();
@ -125,7 +124,6 @@ public class HomeActivity extends BaseActivity implements CustomTitleView.Listen
return new Callback() {
@Override
public void success() {
Notify.dismiss();
getHistory();
getVideo();
}
@ -133,7 +131,6 @@ public class HomeActivity extends BaseActivity implements CustomTitleView.Listen
@Override
public void error(int resId) {
Notify.show(resId);
Notify.dismiss();
}
};
}
@ -324,7 +321,7 @@ public class HomeActivity extends BaseActivity implements CustomTitleView.Listen
Notify.show(R.string.app_exit);
App.post(() -> mConfirmExit = false, 1000);
} else {
super.onBackPressed();
finish();
}
}
@ -335,5 +332,6 @@ public class HomeActivity extends BaseActivity implements CustomTitleView.Listen
LiveConfig.get().clear();
ApiConfig.get().clear();
Server.get().stop();
System.exit(0);
}
}

@ -27,7 +27,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="12dp"
android:textColor="@color/grey_700"
android:textColor="@color/grey_800"
android:textSize="18sp"
tools:text="005" />
@ -39,7 +39,7 @@
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
android:textColor="@color/grey_700"
android:textColor="@color/grey_800"
android:textSize="18sp"
tools:text="民視" />
@ -51,7 +51,7 @@
android:layout_marginEnd="12dp"
android:layout_weight="1"
android:singleLine="true"
android:textColor="@color/grey_700"
android:textColor="@color/grey_800"
android:textSize="18sp"
tools:text="正在播放:食神" />

Loading…
Cancel
Save