Skip to content

Commit 19900b4

Browse files
committed
style: add ktlint to systemstubs module
1 parent af17511 commit 19900b4

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

systemstubs/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
alias(libs.plugins.android.library)
33
alias(libs.plugins.kotlin.android)
4+
alias(libs.plugins.jlleitschuh.gradle.ktlint)
45
}
56

67
android {

systemstubs/src/main/java/android/app/ActivityTaskManagerApis.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ object ActivityTaskManagerApis {
99
maxNum: Int,
1010
filterOnlyVisibleRecents: Boolean,
1111
keepIntentExtra: Boolean,
12-
displayId: Int
12+
displayId: Int,
1313
): MutableList<RunningTaskInfo?>? {
1414
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
1515
return activityTaskManager.getTasks(
1616
maxNum,
1717
filterOnlyVisibleRecents,
1818
keepIntentExtra,
19-
displayId
19+
displayId,
2020
)
2121
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
2222
return activityTaskManager.getTasks(maxNum, filterOnlyVisibleRecents, keepIntentExtra)
2323
} else {
2424
return activityTaskManager.getTasks(maxNum)
2525
}
2626
}
27-
}
27+
}

systemstubs/src/main/java/android/nfc/NfcAdapterApis.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ object NfcAdapterApis {
1818
adapter.disable(saveState)
1919
}
2020
}
21-
}
21+
}

systemstubs/src/main/java/android/permission/PermissionManagerApis.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ object PermissionManagerApis {
88
packageName: String,
99
permission: String,
1010
deviceId: Int,
11-
userId: Int
11+
userId: Int,
1212
) {
1313
// In revisions of Android 14 the method to grant permissions changed
1414
// so try them all.
@@ -51,4 +51,4 @@ object PermissionManagerApis {
5151
)
5252
}
5353
}
54-
}
54+
}

0 commit comments

Comments
 (0)