From cf5a35275860a113a06c1d3e9df4880a91ab5d3a Mon Sep 17 00:00:00 2001 From: Bnyro Date: Wed, 1 Jun 2022 08:27:52 +0200 Subject: [PATCH] ktlint --- app/src/main/java/com/github/libretube/PlayerFragment.kt | 4 ++-- app/src/main/java/com/github/libretube/SettingsActivity.kt | 7 +++---- app/src/main/java/com/github/libretube/ThemeChanger.kt | 3 ++- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/github/libretube/PlayerFragment.kt b/app/src/main/java/com/github/libretube/PlayerFragment.kt index 74127f04d..bceb4b848 100644 --- a/app/src/main/java/com/github/libretube/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/PlayerFragment.kt @@ -73,12 +73,12 @@ import com.google.android.exoplayer2.util.RepeatModeUtil import com.google.android.material.button.MaterialButton import com.google.android.material.dialog.MaterialAlertDialogBuilder import com.squareup.picasso.Picasso -import org.chromium.net.CronetEngine -import retrofit2.HttpException import java.io.IOException import java.net.URLEncoder import java.util.concurrent.Executors import kotlin.math.abs +import org.chromium.net.CronetEngine +import retrofit2.HttpException var isFullScreen = false diff --git a/app/src/main/java/com/github/libretube/SettingsActivity.kt b/app/src/main/java/com/github/libretube/SettingsActivity.kt index c08f31691..3e41ff8e6 100644 --- a/app/src/main/java/com/github/libretube/SettingsActivity.kt +++ b/app/src/main/java/com/github/libretube/SettingsActivity.kt @@ -29,14 +29,13 @@ import androidx.preference.PreferenceFragmentCompat import androidx.preference.PreferenceManager import com.google.android.material.color.DynamicColors import com.google.android.material.dialog.MaterialAlertDialogBuilder -import org.json.JSONObject -import org.json.JSONTokener -import retrofit2.HttpException import java.io.IOException import java.io.InputStream import java.util.zip.ZipEntry import java.util.zip.ZipInputStream - +import org.json.JSONObject +import org.json.JSONTokener +import retrofit2.HttpException private var isCurrentViewMainSettings = true private var requireMainActivityRestart = false diff --git a/app/src/main/java/com/github/libretube/ThemeChanger.kt b/app/src/main/java/com/github/libretube/ThemeChanger.kt index 2a05769ad..ab312f2ce 100644 --- a/app/src/main/java/com/github/libretube/ThemeChanger.kt +++ b/app/src/main/java/com/github/libretube/ThemeChanger.kt @@ -82,7 +82,8 @@ fun changeIcon(context: Context, newLogoActivityAlias: String) { // Needed due to different MainActivity Aliases because of the app icons fun restartMainActivity(context: Context) { // kill player notification - val nManager = context.getSystemService(AppCompatActivity.NOTIFICATION_SERVICE) as NotificationManager + val nManager = context + .getSystemService(AppCompatActivity.NOTIFICATION_SERVICE) as NotificationManager nManager.cancelAll() // restart to MainActivity val pm: PackageManager = context.packageManager