Skip to content

Commit fbb5b21

Browse files
JonEckenrodegithub-actions[bot]
authored andcommitted
Apply Spotless
1 parent e83afb8 commit fbb5b21

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

misc/src/main/java/com/example/snippets/PdfViewerKotlinSnippets.kt

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.example.snippets
17+
package com.example.snippets
1818

1919
import android.net.Uri
2020
import android.os.Build
@@ -41,10 +41,9 @@ class PdfViewerKotlinSnippets {
4141

4242
// [START android_pdf_viewer_extension_version_kotlin]
4343
if (SdkExtensions.getExtensionVersion(Build.VERSION_CODES.S) >= 13) {
44-
// Load the fragment and document.
44+
// Load the fragment and document.
4545
}
4646
// [END android_pdf_viewer_extension_version_kotlin]
47-
4847
}
4948

5049
// [START android_pdf_viewer_create_compat_activity_kotlin]
@@ -55,14 +54,14 @@ class PdfViewerKotlinSnippets {
5554

5655
val getContentButton: MaterialButton = findViewById(R.id.launch_button)
5756
val searchButton: MaterialButton = findViewById(R.id.search_button)
58-
}
57+
}
5958
}
6059
// [END android_pdf_viewer_create_compat_activity_kotlin]
6160

6261
// [START android_pdf_viewer_extend_fragment_kotlin]
6362
@RequiresExtension(extension = Build.VERSION_CODES.S, version = 13)
6463
class PdfViewerFragmentExtended : PdfViewerFragment() {
65-
private val myLogger : Logger = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME)
64+
private val myLogger: Logger = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME)
6665

6766
override fun onLoadDocumentSuccess() {
6867
myLogger.log(INFO, "// Log document success.")
@@ -89,9 +88,8 @@ class PdfViewerKotlinSnippets {
8988
if (pdfViewerFragment == null) {
9089
pdfViewerFragment =
9190
supportFragmentManager
92-
.findFragmentByTag(PDF_VIEWER_FRAGMENT_TAG) as PdfViewerFragment?
91+
.findFragmentByTag(PDF_VIEWER_FRAGMENT_TAG) as PdfViewerFragment?
9392
}
94-
9593
}
9694

9795
// Used to instantiate and commit the fragment.
@@ -122,7 +120,6 @@ class PdfViewerKotlinSnippets {
122120
}
123121
}
124122
// [END android_pdf_viewer_create_fragment_kotlin]
125-
126123
}
127124

128125
/** Enable nested classes. **/
@@ -145,7 +142,6 @@ class PdfViewerKotlinSnippets {
145142
}
146143
}
147144
// [END android_pdf_viewer_enable_document_search_kotlin]
148-
149145
}
150146

151147
/** Enable nested classes. **/
@@ -163,7 +159,6 @@ class PdfViewerKotlinSnippets {
163159
supportFragmentManager
164160
.findFragmentByTag(PDF_VIEWER_FRAGMENT_TAG) as PdfViewerFragment?
165161
}
166-
167162
}
168163

169164
// [START android_pdf_viewer_launch_file_picker_kotlin]
@@ -217,7 +212,6 @@ class PdfViewerKotlinSnippets {
217212
companion object {
218213
private const val PDF_VIEWER_FRAGMENT_TAG = "pdf_viewer_fragment_tag"
219214
}
220-
221215
}
222216

223217
// [START android_pdf_viewer_style_fragment_constructor_kotlin]
@@ -307,7 +301,5 @@ class PdfViewerKotlinSnippets {
307301
companion object {
308302
private const val PDF_VIEWER_FRAGMENT_TAG = "pdf_viewer_fragment_tag"
309303
}
310-
311304
}
312-
313-
}
305+
}

0 commit comments

Comments
 (0)