From f5323b647f9655cac8e589ea7f675906918e2973 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Tue, 17 Dec 2024 23:29:06 +0100 Subject: [PATCH] Remove unrelated changes --- .../java/org/microg/gms/gcm/PushRegisterManager.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/play-services-core/src/main/java/org/microg/gms/gcm/PushRegisterManager.java b/play-services-core/src/main/java/org/microg/gms/gcm/PushRegisterManager.java index 063a9fbac1..cfa19c7187 100644 --- a/play-services-core/src/main/java/org/microg/gms/gcm/PushRegisterManager.java +++ b/play-services-core/src/main/java/org/microg/gms/gcm/PushRegisterManager.java @@ -18,7 +18,6 @@ import android.content.Context; import android.os.Bundle; -import android.text.TextUtils; import android.util.Log; import org.microg.gms.checkin.LastCheckinInfo; @@ -153,13 +152,8 @@ private static Bundle handleResponse(GcmDatabase database, RegisterRequest reque } } else { if (!request.app.equals(response.deleted) && !request.app.equals(response.token) && !request.sender.equals(response.token)) { - if (TextUtils.isEmpty(response.token)) { - database.noteAppUnregistered(request.app, request.appSignature); - resultBundle.putString(EXTRA_UNREGISTERED, attachRequestId(request.app, requestId)); - } else { - database.noteAppRegistrationError(request.app, response.responseText); - resultBundle.putString(EXTRA_ERROR, attachRequestId(ERROR_SERVICE_NOT_AVAILABLE, requestId)); - } + database.noteAppRegistrationError(request.app, response.responseText); + resultBundle.putString(EXTRA_ERROR, attachRequestId(ERROR_SERVICE_NOT_AVAILABLE, requestId)); } else { database.noteAppUnregistered(request.app, request.appSignature); resultBundle.putString(EXTRA_UNREGISTERED, attachRequestId(request.app, requestId));