Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device.java中没有执行回调,导致DeviceIdentifier.register()监听不到onComplete() #90

Closed
tsingmoo opened this issue May 30, 2024 · 2 comments

Comments

@tsingmoo
Copy link

tsingmoo commented May 30, 2024

private static void getOAIDOrOtherId(Application application, boolean tryWidevine, IRegisterCallback callback) {
        getOAID(application, new IGetter() {
            @Override
            public void onOAIDGetComplete(String result) {
                if (TextUtils.isEmpty(result)) {
                    onOAIDGetError(new OAIDException("OAID is empty"));
                    return;
                }
                Holder.INSTANCE.clientId = result;
                Holder.INSTANCE.oaid = result;
                OAIDLog.print("Client id is OAID/AAID: " + result);
                //应该增加callback.onComplete
                callback.onComplete(result, null);
            }

            @Override
            public void onOAIDGetError(Exception error) {
                getOtherId(error, application, tryWidevine, callback);
            }
        });
    }
@kingyangcn
Copy link

public static void register(Application application, IRegisterCallback callback) { register(application, false, null); }
还有这个方法callback没用

@liyujiang-gzu
Copy link
Member

liyujiang-gzu commented Dec 1, 2024

public static void register(Application application, IRegisterCallback callback) { register(application, false, null); }
还有这个方法callback没用

callback居然没传入?源码已修改,稍后发个新版

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants