eventbus and im 添加log打印。
This commit is contained in:
@@ -162,7 +162,7 @@ public class LoginActivity extends BaseMvpActivity<LoginPresenter, ActivityLogin
|
||||
|
||||
@Override
|
||||
public void showLoadings() {
|
||||
showLoading();
|
||||
// showLoading();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -172,7 +172,7 @@ public class LoginActivity extends BaseMvpActivity<LoginPresenter, ActivityLogin
|
||||
|
||||
@Override
|
||||
public void disLoadings() {
|
||||
disLoading();
|
||||
// disLoading();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1254,6 +1254,8 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
.commitAllowingStateLoss()
|
||||
}
|
||||
|
||||
LogUtils.e("roomInfoEvent: ${messageEvent.toString()}")
|
||||
|
||||
val msgType = messageEvent.msgType
|
||||
val text = messageEvent.text
|
||||
|
||||
@@ -3184,6 +3186,7 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
fun onMusicEvent(event: Music?) {
|
||||
LogUtils.e("eventMain: ${event.toString()} Music: ${customMusicFloatingView != null}")
|
||||
if (customMusicFloatingView != null) {
|
||||
customMusicFloatingView!!.onMusicEvent(event)
|
||||
}
|
||||
@@ -3191,6 +3194,7 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
fun onMusicPlayBeanEvent(event: MusicPlayBean) {
|
||||
LogUtils.e("eventMain: ${event.toString()} MusicPlayBean: ${customMusicFloatingView != null}")
|
||||
if (customMusicFloatingView != null) {
|
||||
customMusicFloatingView!!.updateProgress(Math.toIntExact(event.position))
|
||||
}
|
||||
@@ -3198,6 +3202,7 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
fun onEventMain(event: BaseEvent?) {
|
||||
LogUtils.e("eventMain: ${event.toString()}")
|
||||
when (event) {
|
||||
is MusicEvent -> {
|
||||
if (!isMusic) {
|
||||
|
||||
@@ -204,7 +204,7 @@ public class SettingActivity extends BaseMvpActivity<SettingPresenter, ActivityS
|
||||
}
|
||||
}
|
||||
} else if (view.getId() == R.id.tv_share) {
|
||||
|
||||
showLoading("正在生成分享文件...");
|
||||
Observable.create(new ObservableOnSubscribe<Boolean>() {
|
||||
@SuppressLint("CheckResult")
|
||||
@Override
|
||||
@@ -227,6 +227,7 @@ public class SettingActivity extends BaseMvpActivity<SettingPresenter, ActivityS
|
||||
@SuppressLint("CheckResult")
|
||||
@Override
|
||||
public void accept(Boolean aBoolean) {
|
||||
disLoading();
|
||||
if (aBoolean){
|
||||
File file = new File(Application.Companion.getInstance().getAppContent()+"/DataInfo.zip");
|
||||
Uri uri = FileProvider.getUriForFile(SettingActivity.this, getPackageName()+".fileprovider", file);
|
||||
@@ -240,10 +241,6 @@ public class SettingActivity extends BaseMvpActivity<SettingPresenter, ActivityS
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
private void showYouthModelDialog() {
|
||||
|
||||
Reference in New Issue
Block a user