Skip to content

Commit

Permalink
Spotless apply
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronveloso committed Feb 19, 2025
1 parent c315591 commit a8825c0
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions sample/src/main/java/com/example/AfterpayUiGalleryActivity.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright (C) 2025 Afterpay
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example

import android.os.Bundle
Expand All @@ -22,7 +37,6 @@ class AfterpayUiGalleryActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.afterpay_ui_widgets)


val logoContainer = findViewById<LinearLayout>(R.id.logo_container)

// Instantiate an AfterpayPriceBreakdown and fill it with dummy info.
Expand All @@ -33,7 +47,7 @@ class AfterpayUiGalleryActivity : AppCompatActivity() {
}
val params = LinearLayout.LayoutParams(
LinearLayout.LayoutParams.WRAP_CONTENT,
LinearLayout.LayoutParams.WRAP_CONTENT
LinearLayout.LayoutParams.WRAP_CONTENT,
)
logoContainer.addView(breakdownView, params)
}
Expand All @@ -45,8 +59,6 @@ class AfterpayUiGalleryActivity : AppCompatActivity() {
}
}



private fun getConfiguration() {
CoroutineScope(Dispatchers.IO).launch {
merchantApi().getConfiguration().apply {
Expand All @@ -70,6 +82,4 @@ class AfterpayUiGalleryActivity : AppCompatActivity() {
}
}
}


}

0 comments on commit a8825c0

Please sign in to comment.