Skip to content

Commit

Permalink
Merge pull request #4209 from khushal1707/CATROID-1121
Browse files Browse the repository at this point in the history
CATROID-1121 Refactor MainMenuActivity and related files to Kotlin
  • Loading branch information
juliajulie95 authored Aug 2, 2022
2 parents 138dfa1 + 1d321f5 commit 00a2865
Show file tree
Hide file tree
Showing 8 changed files with 564 additions and 518 deletions.
6 changes: 3 additions & 3 deletions catroid/src/main/java/org/catrobat/catroid/ui/BaseActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import com.google.android.gms.analytics.HitBuilders.ScreenViewBuilder
import org.catrobat.catroid.CatroidApplication
import org.catrobat.catroid.R
import org.catrobat.catroid.cast.CastManager
import org.catrobat.catroid.ui.MainMenuActivity.surveyCampaign
import org.catrobat.catroid.ui.MainMenuActivity.Companion.surveyCampaign
import org.catrobat.catroid.ui.runtimepermissions.PermissionHandlingActivity
import org.catrobat.catroid.ui.runtimepermissions.PermissionRequestActivityExtension
import org.catrobat.catroid.ui.runtimepermissions.RequiresPermissionTask
Expand Down Expand Up @@ -159,8 +159,8 @@ abstract class BaseActivity : AppCompatActivity(), PermissionHandlingActivity {
override fun onPause() {
super.onPause()
val pm = getSystemService(POWER_SERVICE) as PowerManager
if (surveyCampaign != null && (isApplicationSentToBackground(this) || !pm.isInteractive)) {
surveyCampaign.endAppTime(this)
if (isApplicationSentToBackground(this) || !pm.isInteractive) {
surveyCampaign?.endAppTime(this)
}
}

Expand Down
354 changes: 0 additions & 354 deletions catroid/src/main/java/org/catrobat/catroid/ui/MainMenuActivity.java

This file was deleted.

Loading

0 comments on commit 00a2865

Please sign in to comment.