Skip to content

Commit 58e7881

Browse files
authored
Merge pull request #174 from jeremiahVaris/update-layout-names
Rename layouts to have unique names
2 parents 0c452f7 + 01b82ab commit 58e7881

File tree

61 files changed

+38
-43
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+38
-43
lines changed

app/src/main/java/com/flutterwave/rave_android/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ private void addVendorDialog() {
369369
final AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this);
370370
// ...Irrelevant code for customizing the buttons and title
371371
LayoutInflater inflater = this.getLayoutInflater();
372-
View dialogView = inflater.inflate(R.layout.add_vendor_layout, null);
372+
View dialogView = inflater.inflate(R.layout.rave_sdk_add_vendor_layout, null);
373373
dialogBuilder.setView(dialogView);
374374
final EditText vendorReferenceET = dialogView.findViewById(R.id.vendorReferecnceET);
375375
final EditText vendorRatioET = dialogView.findViewById(R.id.vendorRatioET);

raveandroid/src/main/java/com/flutterwave/raveandroid/RavePayActivity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public class RavePayActivity extends AppCompatActivity {
103103
@Override
104104
protected void onCreate(Bundle savedInstanceState) {
105105
super.onCreate(savedInstanceState);
106-
setContentView(R.layout.activity_rave_pay);
106+
setContentView(R.layout.rave_sdk_activity_rave_pay);
107107
root = findViewById(R.id.rave_pay_activity_rootview);
108108

109109
try {
@@ -200,7 +200,7 @@ private void render(boolean animated) {
200200
// Set title view
201201
View titleView = root.findViewById(R.id.title_container);
202202
if (titleView == null) {
203-
titleView = getLayoutInflater().inflate(R.layout.rave_payment_title_layout, root, false);
203+
titleView = getLayoutInflater().inflate(R.layout.rave_sdk_payment_title_layout, root, false);
204204
root.addView(titleView);
205205
}
206206
set.connect(titleView.getId(), ConstraintSet.TOP, root.getId(), ConstraintSet.TOP);
@@ -315,7 +315,7 @@ private void displayPaymentFragment(final PaymentTile foundPaymentTile) {
315315
if (fragmentContainerLayout == null) {
316316
fragmentContainerLayout
317317
= getLayoutInflater()
318-
.inflate(R.layout.payment_fragment_container_layout, root, false);
318+
.inflate(R.layout.rave_sdk_payment_fragment_container_layout, root, false);
319319

320320
root.addView(fragmentContainerLayout);
321321
fragmentContainerLayout
@@ -569,7 +569,7 @@ private void addPaymentType(int paymentType) {
569569
}
570570

571571
private View createPaymentTileView(String title) {
572-
View tileView = getLayoutInflater().inflate(R.layout.payment_type_tile_layout, root, false);
572+
View tileView = getLayoutInflater().inflate(R.layout.rave_sdk_payment_type_tile_layout, root, false);
573573
TextView tv2 = tileView.findViewById(R.id.rave_payment_type_title_textView);
574574
tileView.setId(ViewCompat.generateViewId());
575575
String fullTitle = "Pay with " + title;

raveandroid/src/main/java/com/flutterwave/raveandroid/WebFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public WebFragment() {
4949
public View onCreateView(LayoutInflater inflater, ViewGroup container,
5050
Bundle savedInstanceState) {
5151
// Inflate the layout for this fragment
52-
View v = inflater.inflate(R.layout.fragment_web, container, false);
52+
View v = inflater.inflate(R.layout.rave_sdk_fragment_web, container, false);
5353
webView = v.findViewById(R.id.rave_webview);
5454
authurl = getArguments().getString(EXTRA_AUTH_URL);
5555
onDisplayInternetBankingPage(authurl);

raveandroid/src/main/java/com/flutterwave/raveandroid/account/AccountFragment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
9494

9595
injectComponents();
9696

97-
v = inflater.inflate(R.layout.fragment_account, container, false);
97+
v = inflater.inflate(R.layout.rave_sdk_fragment_account, container, false);
9898

9999
initializeViews();
100100

@@ -350,7 +350,7 @@ public void showBanks(List<Bank> banks) {
350350
bottomSheetDialog = new BottomSheetDialog(getActivity());
351351

352352
LayoutInflater inflater = LayoutInflater.from(getActivity());
353-
View v = inflater.inflate(R.layout.add_exisiting_bank, null, false);
353+
View v = inflater.inflate(R.layout.rave_sdk_add_exisiting_bank, null, false);
354354
RecyclerView recyclerView = v.findViewById(R.id.rave_recycler);
355355

356356
BanksRecyclerAdapter adapter = new BanksRecyclerAdapter();

raveandroid/src/main/java/com/flutterwave/raveandroid/account/BanksRecyclerAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
3232
Context context = parent.getContext();
3333
LayoutInflater inflater = LayoutInflater.from(context);
3434

35-
View v = inflater.inflate(R.layout.select_bank_list_item, parent, false);
35+
View v = inflater.inflate(R.layout.rave_sdk_select_bank_list_item, parent, false);
3636
return new ViewHolder(v);
3737
}
3838

raveandroid/src/main/java/com/flutterwave/raveandroid/ach/AchFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
5858

5959
injectComponents();
6060

61-
v = inflater.inflate(R.layout.fragment_ach, container, false);
61+
v = inflater.inflate(R.layout.rave_sdk_fragment_ach, container, false);
6262

6363
initializeViews();
6464

raveandroid/src/main/java/com/flutterwave/raveandroid/banktransfer/BankTransferFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
7979
presenter.restoreState(savedInstanceState);
8080
}
8181

82-
v = inflater.inflate(R.layout.fragment_bank_transfer, container, false);
82+
v = inflater.inflate(R.layout.rave_sdk_fragment_bank_transfer, container, false);
8383

8484
initializeViews();
8585

raveandroid/src/main/java/com/flutterwave/raveandroid/barter/BarterFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
7070
Bundle savedInstanceState) {
7171
injectComponents();
7272

73-
v = inflater.inflate(R.layout.fragment_barter, container, false);
73+
v = inflater.inflate(R.layout.rave_sdk_fragment_barter, container, false);
7474

7575
initializeViews();
7676

raveandroid/src/main/java/com/flutterwave/raveandroid/card/CardFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
137137

138138
injectComponents();
139139

140-
v = inflater.inflate(R.layout.fragment_card, container, false);
140+
v = inflater.inflate(R.layout.rave_sdk_fragment_card, container, false);
141141

142142
initializeViews();
143143

raveandroid/src/main/java/com/flutterwave/raveandroid/card/SavedCardRecyclerAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
3333
Context context = parent.getContext();
3434
LayoutInflater inflater = LayoutInflater.from(context);
3535

36-
View v = inflater.inflate(R.layout.card_preview_item, parent, false);
36+
View v = inflater.inflate(R.layout.rave_sdk_card_preview_item, parent, false);
3737
return new ViewHolder(v);
3838
}
3939

0 commit comments

Comments
 (0)