Set device type in case of update

This commit is contained in:
felipeal
2012-08-08 03:30:55 +00:00
parent abc57f9609
commit 986b323bd7

View File

@@ -159,6 +159,8 @@ public class RegisterServlet extends HttpServlet {
} else {
// update registration id
device.setDeviceRegistrationID(reqInfo.deviceRegistrationID);
// must update type, as this could be a C2DM to GCM migration
device.setType(deviceType);
device.setRegistrationTimestamp(new Date());
}