优化
This commit is contained in:
parent
8ddaf20e4f
commit
fc78fd9d1d
@ -87,7 +87,7 @@ public class LiveTaskModel extends BaseModel {
|
|||||||
|
|
||||||
public String getEndTime() {
|
public String getEndTime() {
|
||||||
if (!StringUtil.isEmpty(endTime)) {
|
if (!StringUtil.isEmpty(endTime)) {
|
||||||
endTime =WordUtil.getString(R.string.live_task_new_user_timer) + new SimpleDateFormat("yyyy/MM/dd HH:mm", Locale.getDefault()).format(new Date(Long.parseLong(endTime) * 1000));
|
endTime = new SimpleDateFormat("yyyy/MM/dd HH:mm", Locale.getDefault()).format(new Date(Long.parseLong(endTime) * 1000));
|
||||||
}
|
}
|
||||||
return endTime;
|
return endTime;
|
||||||
}
|
}
|
||||||
|
@ -147,7 +147,7 @@ public class LiveTaskDialog extends AbsDialogPopupWindow {
|
|||||||
if (task.isNew()) {
|
if (task.isNew()) {
|
||||||
newStarImg.setVisibility(VISIBLE);
|
newStarImg.setVisibility(VISIBLE);
|
||||||
newStarTime.setVisibility(VISIBLE);
|
newStarTime.setVisibility(VISIBLE);
|
||||||
newStarTime.setText(task.getEndTime());
|
newStarTime.setText(WordUtil.isNewZh()?"新秀主播時效截止至 ":"The statute of limitations for new anchors expires " +task.getEndTime());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="600dp"
|
android:layout_height="600dp"
|
||||||
|
|
||||||
android:background="#000002">
|
android:background="#000002">
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
@ -24,11 +23,11 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
android:layout_marginEnd="14dp"
|
|
||||||
android:textColor="#FFFFFF"
|
android:textColor="#FFFFFF"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:visibility="invisible"
|
android:visibility="invisible"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
@ -175,7 +175,7 @@ public class MainStartDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
String[] permissions;
|
String[] permissions;
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
||||||
permissions = new String[]{
|
permissions = new String[]{
|
||||||
Manifest.permission.READ_MEDIA_IMAGES,
|
//Manifest.permission.READ_MEDIA_IMAGES, 去掉选择图片的权限,到里面选择封面的时候再去申请
|
||||||
Manifest.permission.CAMERA,
|
Manifest.permission.CAMERA,
|
||||||
Manifest.permission.RECORD_AUDIO
|
Manifest.permission.RECORD_AUDIO
|
||||||
};
|
};
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
android:background="@drawable/view_btn_chat_status_config"
|
android:background="@drawable/view_btn_chat_status_config"
|
||||||
android:bufferType="spannable"
|
android:bufferType="spannable"
|
||||||
android:button="@null"
|
android:button="@null"
|
||||||
android:checked="true"
|
|
||||||
android:drawableTop="@drawable/view_btn_chat_status_config_online_color"
|
android:drawableTop="@drawable/view_btn_chat_status_config_online_color"
|
||||||
android:ellipsize="marquee"
|
android:ellipsize="marquee"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
@ -39,7 +38,6 @@
|
|||||||
android:layout_height="100dp"
|
android:layout_height="100dp"
|
||||||
android:background="@drawable/view_btn_chat_status_config"
|
android:background="@drawable/view_btn_chat_status_config"
|
||||||
android:button="@null"
|
android:button="@null"
|
||||||
android:checked="false"
|
|
||||||
android:drawableTop="@drawable/view_btn_chat_status_config_off_color"
|
android:drawableTop="@drawable/view_btn_chat_status_config_off_color"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:paddingTop="30dp"
|
android:paddingTop="30dp"
|
||||||
|
Loading…
Reference in New Issue
Block a user