Skip to content

Commit

Permalink
fix THEME_COLOR build issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
a-eid committed Feb 19, 2024
1 parent 13a24e5 commit 0ee1c5b
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,14 @@ public void presentPayVC(ReadableMap params, Promise promise) {
if(params.getString("buttonText") != null) {
pay_intent.putExtra("PAY_BUTTON_TEXT", params.getString("buttonText"));
}
pay_intent.putExtra(PayActivityIntentKeys.THEME_COLOR, R.color.colorPrimary);

try {
int colorValue = ContextCompat.getColor(currentActivity, R.color.colorPrimary);
pay_intent.putExtra(PayActivityIntentKeys.THEME_COLOR, colorValue);
} catch (Resources.NotFoundException e) {
//
}

pay_intent.putExtra("language", params.getBoolean("isEnglish") ? "en" : "ar");
pay_intent.putExtra("ActionBar", false);

Expand Down

0 comments on commit 0ee1c5b

Please sign in to comment.