Skip to content

Commit

Permalink
Merge pull request #68 from payatu/banditamit
Browse files Browse the repository at this point in the history
Offer handling in deeplink
  • Loading branch information
banditAmit authored Jul 28, 2024
2 parents 780bdf7 + 57f9b48 commit ed01042
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion app/src/main/java/com/BugBazaar/ui/Deeplink.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,15 @@ public void onCreate(Bundle savedInstanceState) {
// Deep link handling for msg
if (deeplink != null && "/offers".equals(deeplink.getPath())) {
String message = deeplink.getQueryParameter("textMsg");
if (message != null) {
String offer = deeplink.getQueryParameter("offer");
if (message != null && offer!=null) {
messageTextView.setText(message);
Intent intentA = new Intent(this, NavigationDrawer_Dashboard.class);
intentA.setData(Uri.parse(offer));
startActivity(intentA);
}


}

// Deep link handling for url
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ public class AddressReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {

Toast.makeText(context.getApplicationContext(), "address hacker changes", Toast.LENGTH_SHORT).show();
Toast.makeText(context.getApplicationContext(), "your address changed", Toast.LENGTH_SHORT).show();
}
}

0 comments on commit ed01042

Please sign in to comment.