[fix]修复近程没有杀死时,调用AdasManager.getInstance().create(options, this);不会进行连接的bug
This commit is contained in:
@@ -40,7 +40,6 @@
|
||||
|
||||
<activity
|
||||
android:name=".ui.MainActivity"
|
||||
android:resizeableActivity="false"
|
||||
android:screenOrientation="landscape"
|
||||
android:theme="@style/AppTheme.NoActionBar">
|
||||
<intent-filter>
|
||||
@@ -52,7 +51,6 @@
|
||||
|
||||
<activity
|
||||
android:name=".ui.AutopilotConfigActivity"
|
||||
android:resizeableActivity="false"
|
||||
android:theme="@style/AppTheme.NoActionBar">
|
||||
|
||||
</activity>
|
||||
|
||||
@@ -83,9 +83,12 @@ public class AdasManager implements IAdasNetCommApi {
|
||||
* @param onAdasConnectStatusListener 连接状态监听
|
||||
*/
|
||||
public synchronized void create(AdasOptions options, OnAdasConnectStatusListener onAdasConnectStatusListener) {
|
||||
if (mChannel == null) {
|
||||
mChannel = new AdasChannel(options, onAdasConnectStatusListener);
|
||||
if (mChannel != null) {
|
||||
carConfig = null;
|
||||
mChannel = null;
|
||||
}
|
||||
mChannel = new AdasChannel(options, onAdasConnectStatusListener);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user