设置特殊通道控件与倒计时同步更新。
This commit is contained in:
@@ -270,6 +270,9 @@ public class LimitedTimeSpecialChannelView extends LinearLayout {
|
||||
long remainingSeconds = intent.getLongExtra(LimitedTimeSpecialChannelService.EXTRA_REMAINING_SECONDS, 0);
|
||||
if (mEtSeconds != null) {
|
||||
mEtSeconds.setText(String.valueOf(remainingSeconds));
|
||||
}
|
||||
if (mSwEnable != null) {
|
||||
mSwEnable.setChecked(remainingSeconds>0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user