} else if (registrationId != null) {
<BUG>Log.i(TAG, "Registering for ADM messages with registrationId: " + registrationId);
</BUG>
Appboy.getInstance(context).registerAppboyPushMessages(registrationId);
} else if (unregistered != null) {
<BUG>Log.i(TAG, "Unregistering from ADM: " + unregistered);
</BUG>
Appboy.getInstance(context).unregisterAppboyPushMessages();
} else {
<BUG>Log.w(TAG, "The ADM registration intent is missing error information, registration id, and unregistration " +
</BUG>
"confirmation. Ignoring.");

} else if (registrationId != null) {
AppboyLogger.i(TAG, "Registering for ADM messages with registrationId: " + registrationId);
Appboy.getInstance(context).registerAppboyPushMessages(registrationId);
} else if (unregistered != null) {
AppboyLogger.i(TAG, "Unregistering from ADM: " + unregistered);
Appboy.getInstance(context).unregisterAppboyPushMessages();
} else {
AppboyLogger.w(TAG, "The ADM registration intent is missing error information, registration id, and unregistration " +
"confirmation. Ignoring.");
