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

Open
tsingmoo opened this issue May 30, 2024 · 0 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);
            }
        });
    }
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

1 participant