Skip to content

Commit

Permalink
handle sdkid
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedshortcut committed Mar 10, 2022
1 parent b49f695 commit 74c6051
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_initialization.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
android:id="@+id/cpIdET"
style="@style/CustomEditText"
android:layout_width="match_parent"
android:inputType="text"
android:layout_height="wrap_content"
android:hint="@string/cpid_label" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ internal class TrustedWebHandler(
url = twaInfo.url
val panelistData = PanelistHandler.getCookies(context,context as ComponentActivity)
val sdkId = getSdkId(panelistData)
if (sdkId.isNotEmpty()){
url += "?sdkid=$sdkId"
url += if (sdkId.isNotEmpty()){
"?sdkid=$sdkId"
}else{
url += "?sdkid=${getSdkId()}"
"?sdkid=${getSdkId()}"
}
try {
val uri = Uri.parse(url).buildUpon()
Expand Down

0 comments on commit 74c6051

Please sign in to comment.