1
+ /*
2
+ * Copyright (C) 2025 Afterpay
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
1
16
package com.example
2
17
3
18
import android.os.Bundle
@@ -22,7 +37,6 @@ class AfterpayUiGalleryActivity : AppCompatActivity() {
22
37
super .onCreate(savedInstanceState)
23
38
setContentView(R .layout.afterpay_ui_widgets)
24
39
25
-
26
40
val logoContainer = findViewById<LinearLayout >(R .id.logo_container)
27
41
28
42
// Instantiate an AfterpayPriceBreakdown and fill it with dummy info.
@@ -33,7 +47,7 @@ class AfterpayUiGalleryActivity : AppCompatActivity() {
33
47
}
34
48
val params = LinearLayout .LayoutParams (
35
49
LinearLayout .LayoutParams .WRAP_CONTENT ,
36
- LinearLayout .LayoutParams .WRAP_CONTENT
50
+ LinearLayout .LayoutParams .WRAP_CONTENT ,
37
51
)
38
52
logoContainer.addView(breakdownView, params)
39
53
}
@@ -45,8 +59,6 @@ class AfterpayUiGalleryActivity : AppCompatActivity() {
45
59
}
46
60
}
47
61
48
-
49
-
50
62
private fun getConfiguration () {
51
63
CoroutineScope (Dispatchers .IO ).launch {
52
64
merchantApi().getConfiguration().apply {
@@ -70,6 +82,4 @@ class AfterpayUiGalleryActivity : AppCompatActivity() {
70
82
}
71
83
}
72
84
}
73
-
74
-
75
85
}
0 commit comments