@@ -212,7 +212,7 @@ public void setDeviceAttribute(String key, String value) {
212212 deviceAttributes .put (key , value );
213213 }
214214
215- public void removeFromDeviceAttribute (String key ) {
215+ public void removeDeviceAttribute (String key ) {
216216 deviceAttributes .remove (key );
217217 }
218218//---------------------------------------------------------------------------------------
@@ -1107,7 +1107,7 @@ protected void disableToken(@Nullable String email, @Nullable String userId, @No
11071107 * @param token
11081108 * @param dataFields
11091109 */
1110- protected void registerDeviceToken (@ Nullable String email , @ Nullable String userId , @ NonNull String applicationName , @ NonNull String token , @ Nullable JSONObject dataFields , @ Nullable HashMap <String , String > deviceAttributes ) {
1110+ protected void registerDeviceToken (@ Nullable String email , @ Nullable String userId , @ NonNull String applicationName , @ NonNull String token , @ Nullable JSONObject dataFields , HashMap <String , String > deviceAttributes ) {
11111111 if (!checkSDKInitialization ()) {
11121112 return ;
11131113 }
@@ -1129,10 +1129,8 @@ protected void registerDeviceToken(@Nullable String email, @Nullable String user
11291129 dataFields = new JSONObject ();
11301130 }
11311131
1132- if (deviceAttributes != null ) {
1133- for (HashMap .Entry <String , String > entry : deviceAttributes .entrySet ()) {
1134- dataFields .put (entry .getKey (), entry .getValue ());
1135- }
1132+ for (HashMap .Entry <String , String > entry : deviceAttributes .entrySet ()) {
1133+ dataFields .put (entry .getKey (), entry .getValue ());
11361134 }
11371135
11381136 dataFields .put (IterableConstants .FIREBASE_TOKEN_TYPE , IterableConstants .MESSAGING_PLATFORM_FIREBASE );
0 commit comments