Skip to content

Commit e5d7036

Browse files
committed
Fix content metadata
1 parent 1985db2 commit e5d7036

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/android/io/branch/BranchSDK.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,10 @@ private void createBranchUniversalObject(JSONObject options) throws JSONExceptio
373373
Iterator<?> keys = contentMetaData.keys();
374374

375375
while (keys.hasNext()) {
376-
String key = (String) keys.next();
377376
Log.d(LCAT, contentMetaData.getString(key));
377+
String key = (String) keys.next();
378+
String value = contentMetaData.optString(key);
379+
this.branchObj.addContentMetadata(key, value);
378380
}
379381
}
380382

0 commit comments

Comments
 (0)