version:1.8.7
fix: update:去掉butterknife
This commit is contained in:
@@ -14,22 +14,18 @@ import android.util.Log;
|
||||
import com.alibaba.sdk.android.push.CloudPushService;
|
||||
import com.alibaba.sdk.android.push.CommonCallback;
|
||||
import com.alibaba.sdk.android.push.noonesdk.PushServiceFactory;
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
import com.tencent.bugly.crashreport.CrashReport;
|
||||
import com.tencent.mmkv.MMKV;
|
||||
import com.uiui.zy.IGetInfoInterface;
|
||||
import com.uiui.zyos.bean.MapBean;
|
||||
import com.uiui.zyos.config.CommonConfig;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
public class RemoteManager {
|
||||
private static final String TAG = RemoteManager.class.getSimpleName();
|
||||
private static final String TAG = "RemoteManager";
|
||||
|
||||
@SuppressLint("StaticFieldLeak")
|
||||
private static RemoteManager sInstance;
|
||||
@@ -58,7 +54,7 @@ public class RemoteManager {
|
||||
mGetInfoInterface = IGetInfoInterface.Stub.asInterface(service);
|
||||
mServiceConnected = true;
|
||||
for (ConnectedListener listener : mListeners) {
|
||||
listener.onConnected();
|
||||
listener.onRemoteConnected();
|
||||
}
|
||||
try {
|
||||
String sn = mGetInfoInterface.getSerial();
|
||||
@@ -118,7 +114,7 @@ public class RemoteManager {
|
||||
}
|
||||
|
||||
public interface ConnectedListener {
|
||||
void onConnected();
|
||||
void onRemoteConnected();
|
||||
}
|
||||
|
||||
private static Set<ConnectedListener> mListeners = new HashSet<>();
|
||||
@@ -126,7 +122,7 @@ public class RemoteManager {
|
||||
public static void setListener(ConnectedListener listener) {
|
||||
mListeners.add(listener);
|
||||
if (mServiceConnected) {
|
||||
listener.onConnected();
|
||||
listener.onRemoteConnected();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user