From 9ac785d60a06afc29c6d1fd35d16f8743d1d40ee Mon Sep 17 00:00:00 2001 From: zhongchao Date: Wed, 13 Sep 2023 18:44:18 +0800 Subject: [PATCH] [3.4.0-map-sdk] code style --- .../core/function/hmi/ui/logcatch/LogItemAdapter.java | 3 --- .../core/function/main/PassengerLauncherActivity.java | 10 ---------- .../com/mogo/eagle/core/function/view/MapBizView.kt | 2 +- .../src/main/java/com/mogo/map/ILifeCycle.kt | 2 +- .../src/main/java/com/mogo/map/AMapViewWrapper.kt | 2 +- .../mogo-map/src/main/java/com/mogo/map/MogoMapView.kt | 2 +- 6 files changed, 4 insertions(+), 17 deletions(-) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/logcatch/LogItemAdapter.java b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/logcatch/LogItemAdapter.java index 0a74ef7c99..36f3e02cd4 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/logcatch/LogItemAdapter.java +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/logcatch/LogItemAdapter.java @@ -23,9 +23,6 @@ import com.mogo.eagle.core.function.hmi.R; import com.mogo.eagle.core.function.hmi.ui.utils.SearchCriteria; import com.mogo.eagle.core.function.hmi.ui.utils.TagColorUtil; -import me.jessyan.autosize.AutoSizeCompat; - - public class LogItemAdapter extends AbsRecyclerAdapter, LogLine> implements Filterable { public LogItemAdapter(Context context) { diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/main/PassengerLauncherActivity.java b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/main/PassengerLauncherActivity.java index 8b2bc3e951..6a0586953c 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/main/PassengerLauncherActivity.java +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/main/PassengerLauncherActivity.java @@ -14,7 +14,6 @@ import android.os.Handler; import android.os.Process; import android.text.TextUtils; import android.util.Log; -import android.view.KeyEvent; import androidx.annotation.Nullable; @@ -23,14 +22,11 @@ import com.mogo.commons.module.intent.IMogoIntentListener; import com.mogo.commons.module.intent.IntentManager; import com.mogo.eagle.core.function.api.base.IMoGoFunctionProvider; import com.mogo.eagle.core.function.api.setting.IMoGoSkinModeChangeListener; -import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager; -import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager; import com.mogo.eagle.core.function.call.setting.CallerSkinModeListenerManager; import com.mogo.eagle.core.function.hmi.R; import com.mogo.eagle.core.function.main.moujie.BluetoothMonitorReceiver; import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger; import com.mogo.eagle.core.utilcode.mogo.storage.SharedPrefsMgr; -import com.mogo.eagle.core.utilcode.util.ToastUtils; import com.rousetime.android_startup.model.CostTimesModel; import com.zhjt.service.chain.ChainLog; @@ -40,8 +36,6 @@ import org.greenrobot.eventbus.Subscribe; import java.lang.reflect.Method; import java.util.List; import java.util.Set; -import java.util.Timer; -import java.util.TimerTask; /** * 针对作为Launcher的情况,做个性化操作 TODO 测试用的,可删除 @@ -54,10 +48,6 @@ public class PassengerLauncherActivity extends MainActivity implements IMogoInte private final static Handler handlerV2XEvent = new Handler(); private static Runnable runnableV2XEvent; - private volatile double accelerated;//加速度 - private Timer timerHorn; - private Timer timerAcc; - private BluetoothMonitorReceiver mBluetoothReceiver = null; private BluetoothAdapter mBluetoothAdapter; diff --git a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/MapBizView.kt b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/MapBizView.kt index 8a81c788c1..7e26acc9ee 100644 --- a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/MapBizView.kt +++ b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/MapBizView.kt @@ -28,7 +28,7 @@ class MapBizView(context: Context?, attrs: AttributeSet?) : MogoMapView(context, private const val TAG = "MapBizView" } - override fun onCreate(bundle: Bundle) { + override fun onCreate(bundle: Bundle?) { super.onCreate(bundle) map?.uiController?.showMyLocation(true) initMapView() diff --git a/libraries/mogo-map-api/src/main/java/com/mogo/map/ILifeCycle.kt b/libraries/mogo-map-api/src/main/java/com/mogo/map/ILifeCycle.kt index 6071a90bc8..d5d445322a 100644 --- a/libraries/mogo-map-api/src/main/java/com/mogo/map/ILifeCycle.kt +++ b/libraries/mogo-map-api/src/main/java/com/mogo/map/ILifeCycle.kt @@ -6,7 +6,7 @@ import android.os.Bundle * 生命周期 */ interface ILifeCycle { - fun onCreate(bundle: Bundle) + fun onCreate(bundle: Bundle?) fun onResume() fun onPause() fun onDestroy() diff --git a/libraries/mogo-map/src/main/java/com/mogo/map/AMapViewWrapper.kt b/libraries/mogo-map/src/main/java/com/mogo/map/AMapViewWrapper.kt index 8402da0411..93680e081b 100644 --- a/libraries/mogo-map/src/main/java/com/mogo/map/AMapViewWrapper.kt +++ b/libraries/mogo-map/src/main/java/com/mogo/map/AMapViewWrapper.kt @@ -122,7 +122,7 @@ class AMapViewWrapper(mMapView: MapAutoView) : IMogoMapView, IMogoMapUIControlle return mIMap } - override fun onCreate(bundle: Bundle) { + override fun onCreate(bundle: Bundle?) { mMapView.onCreate(bundle) d(SceneConstant.M_MAP + TAG, "map onCreate") } diff --git a/libraries/mogo-map/src/main/java/com/mogo/map/MogoMapView.kt b/libraries/mogo-map/src/main/java/com/mogo/map/MogoMapView.kt index 9733285b20..36e0efdfca 100644 --- a/libraries/mogo-map/src/main/java/com/mogo/map/MogoMapView.kt +++ b/libraries/mogo-map/src/main/java/com/mogo/map/MogoMapView.kt @@ -65,7 +65,7 @@ open class MogoMapView : MogoBaseMapView, ILifeCycle { return MogoMap.DEFAULT } - override fun onCreate(bundle: Bundle) { + override fun onCreate(bundle: Bundle?) { super.onCreate(bundle) d(TAG, "onCreate") }