private JSONObject appendDebugParams ( JSONObject originalParams ) { try { if ( originalParams != null && deeplinkDebugParams_ != null ) { if ( deeplinkDebugParams_ . length ( ) > 0 ) { PrefHelper . Debug ( "You're currently in deep link debug mode. Please comment out 'setDeepLinkDebugMode' to receive the deep link parameters from a real Branch link" ) ; } Iterator < String > keys = deeplinkDebugParams_ . keys ( ) ; while ( keys . hasNext ( ) ) { String key = keys . next ( ) ; originalParams . put ( key , deeplinkDebugParams_ . get ( key ) ) ; } } } catch ( Exception ignore ) { } return originalParams ; }
Append the deep link debug params to the original params