From b8542ba688ab62ddef63987dfdc7d50cfc58eeef Mon Sep 17 00:00:00 2001 From: Lucas Lima Date: Mon, 31 Aug 2020 20:06:01 -0300 Subject: [PATCH] Fix ktlint --- .../lucasnlm/antimine/support/SupportAppDialogFragment.kt | 6 ++++-- .../main/java/dev/lucasnlm/external/IInstantAppManager.kt | 2 -- .../src/main/java/dev/lucasnlm/external/AdsManager.kt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/dev/lucasnlm/antimine/support/SupportAppDialogFragment.kt b/app/src/main/java/dev/lucasnlm/antimine/support/SupportAppDialogFragment.kt index 3d90da3c..165f3de3 100644 --- a/app/src/main/java/dev/lucasnlm/antimine/support/SupportAppDialogFragment.kt +++ b/app/src/main/java/dev/lucasnlm/antimine/support/SupportAppDialogFragment.kt @@ -30,8 +30,10 @@ class SupportAppDialogFragment : AppCompatDialogFragment() { billingManager.start(iapHandler) analyticsManager.sentEvent(Analytics.ShowIapDialog) - showUnlockMessage = (arguments?.getBoolean(UNLOCK_LABEL) ?: savedInstanceState?.getBoolean(UNLOCK_LABEL)) ?: false - targetThemeId = (arguments?.getLong(TARGET_THEME_ID, -1L)) ?: -1L + showUnlockMessage = + (arguments?.getBoolean(UNLOCK_LABEL) ?: savedInstanceState?.getBoolean(UNLOCK_LABEL)) ?: false + targetThemeId = + (arguments?.getLong(TARGET_THEME_ID, -1L)) ?: -1L } override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { diff --git a/external/src/main/java/dev/lucasnlm/external/IInstantAppManager.kt b/external/src/main/java/dev/lucasnlm/external/IInstantAppManager.kt index 5fe00189..29d59b4b 100644 --- a/external/src/main/java/dev/lucasnlm/external/IInstantAppManager.kt +++ b/external/src/main/java/dev/lucasnlm/external/IInstantAppManager.kt @@ -1,8 +1,6 @@ package dev.lucasnlm.external -import android.app.Activity import android.content.Context -import android.content.Intent interface IInstantAppManager { fun isEnabled(context: Context): Boolean diff --git a/proprietary/src/main/java/dev/lucasnlm/external/AdsManager.kt b/proprietary/src/main/java/dev/lucasnlm/external/AdsManager.kt index 9b30d3d7..f4a523a5 100644 --- a/proprietary/src/main/java/dev/lucasnlm/external/AdsManager.kt +++ b/proprietary/src/main/java/dev/lucasnlm/external/AdsManager.kt @@ -23,7 +23,7 @@ class AdsManager : IAdsManager { private fun loadRewardedAd(context: Context): RewardedAd { return RewardedAd(context, "ca-app-pub-3940256099942544/5224354917").apply { - val adLoadCallback = object: RewardedAdLoadCallback() { + val adLoadCallback = object : RewardedAdLoadCallback() { override fun onRewardedAdLoaded() { // Loaded }