opt
This commit is contained in:
@@ -92,9 +92,9 @@ class CosStatusController : CosStatusCallback {
|
||||
) {
|
||||
// VoiceController.speakVoice("cos上报失败")
|
||||
Log.d(TAG, "uploadCosFailed mType = $mType")
|
||||
if (entity?.isCustom && mFromType != UPLOAD_FROM_STRATEGY_ACCIDENT_AUTO) {
|
||||
sendGetInfoFailedReceiver("100")
|
||||
}
|
||||
// if (entity?.isCustom && mFromType != UPLOAD_FROM_STRATEGY_ACCIDENT_AUTO) {
|
||||
// sendGetInfoFailedReceiver("100")
|
||||
// }
|
||||
}
|
||||
|
||||
if (!isRetry) {
|
||||
@@ -227,9 +227,9 @@ class CosStatusController : CosStatusCallback {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (type == INFO_TYPE_VIDEO) {
|
||||
TipToast.shortTip("分享失败,请检查网络")
|
||||
}
|
||||
// if (type == INFO_TYPE_VIDEO) {
|
||||
// TipToast.shortTip("分享失败,请检查网络")
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -977,29 +977,29 @@ public class TanluListWindow extends RelativeLayout implements IMogoMarkerClickL
|
||||
*/
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
public void onGetInfoFailed(final GetInfoError error) {
|
||||
mMogoStatusManager.setUploadingStatus(TanluConstants.MODEL_NAME, false);
|
||||
float bearing = TanluServiceManager.getLocationClient().getLastKnowLocation().getBearing(); //角度
|
||||
Logger.d(TAG, "onGetInfoFailed bearing = " + bearing + " >>>type = " + error.type);
|
||||
//失败提示框
|
||||
if (error.type == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
mErrorType = error.type;
|
||||
if (error.type.equals("100")) {
|
||||
//网络弹框
|
||||
if (errorDialog != null && errorDialog.isShowing()) {
|
||||
//TODO
|
||||
} else {
|
||||
showNetErrorDialog();
|
||||
}
|
||||
} else {
|
||||
if (customDialog != null && customDialog.isShowing()) {
|
||||
//TODO
|
||||
} else {
|
||||
showNormalDialog(error.type);
|
||||
}
|
||||
}
|
||||
// mMogoStatusManager.setUploadingStatus(TanluConstants.MODEL_NAME, false);
|
||||
// float bearing = TanluServiceManager.getLocationClient().getLastKnowLocation().getBearing(); //角度
|
||||
// Logger.d(TAG, "onGetInfoFailed bearing = " + bearing + " >>>type = " + error.type);
|
||||
// //失败提示框
|
||||
// if (error.type == null) {
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// mErrorType = error.type;
|
||||
// if (error.type.equals("100")) {
|
||||
// //网络弹框
|
||||
// if (errorDialog != null && errorDialog.isShowing()) {
|
||||
// //TODO
|
||||
// } else {
|
||||
// showNetErrorDialog();
|
||||
// }
|
||||
// } else {
|
||||
// if (customDialog != null && customDialog.isShowing()) {
|
||||
// //TODO
|
||||
// } else {
|
||||
// showNormalDialog(error.type);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
private UploadFailedDialog customDialog;
|
||||
|
||||
Reference in New Issue
Block a user