From 8aa9320dde541c7a090314dc4a2becc586d9d9f2 Mon Sep 17 00:00:00 2001 From: Adhiambo Peres <59600948+adhiamboperes@users.noreply.github.com> Date: Wed, 10 Apr 2024 16:42:02 +0300 Subject: [PATCH] Ktlint errors --- .../org/oppia/android/app/onboardingv2/IntroActivity.kt | 2 +- .../android/app/onboardingv2/IntroFragmentPresenter.kt | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/org/oppia/android/app/onboardingv2/IntroActivity.kt b/app/src/main/java/org/oppia/android/app/onboardingv2/IntroActivity.kt index 26442ccbae5..6c7d7b5f473 100644 --- a/app/src/main/java/org/oppia/android/app/onboardingv2/IntroActivity.kt +++ b/app/src/main/java/org/oppia/android/app/onboardingv2/IntroActivity.kt @@ -5,12 +5,12 @@ import android.content.Intent import android.os.Bundle import org.oppia.android.app.activity.ActivityComponentImpl import org.oppia.android.app.activity.InjectableAutoLocalizedAppCompatActivity +import org.oppia.android.app.model.IntroActivityParams import org.oppia.android.app.model.ScreenName import org.oppia.android.util.extensions.getProtoExtra import org.oppia.android.util.extensions.putProtoExtra import org.oppia.android.util.logging.CurrentAppScreenNameIntentDecorator.decorateWithScreenName import javax.inject.Inject -import org.oppia.android.app.model.IntroActivityParams /** The activity for showing the learner welcome screen. */ class IntroActivity : InjectableAutoLocalizedAppCompatActivity() { diff --git a/app/src/main/java/org/oppia/android/app/onboardingv2/IntroFragmentPresenter.kt b/app/src/main/java/org/oppia/android/app/onboardingv2/IntroFragmentPresenter.kt index 1f5bac2ec09..cc095d79b72 100644 --- a/app/src/main/java/org/oppia/android/app/onboardingv2/IntroFragmentPresenter.kt +++ b/app/src/main/java/org/oppia/android/app/onboardingv2/IntroFragmentPresenter.kt @@ -1,16 +1,14 @@ package org.oppia.android.app.onboardingv2 -import android.content.res.Configuration -import android.content.res.Resources import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.appcompat.app.AppCompatActivity import androidx.fragment.app.Fragment -import javax.inject.Inject import org.oppia.android.R import org.oppia.android.app.translation.AppLanguageResourceHandler import org.oppia.android.databinding.LearnerIntroFragmentBinding +import javax.inject.Inject /** The presenter for [IntroFragment]. */ class IntroFragmentPresenter @Inject constructor( @@ -20,8 +18,6 @@ class IntroFragmentPresenter @Inject constructor( ) { private lateinit var binding: LearnerIntroFragmentBinding - private val orientation = Resources.getSystem().configuration.orientation - /** Handle creation and binding of the OnboardingLearnerIntroFragment layout. */ fun handleCreateView( inflater: LayoutInflater,