Skip to content

Commit

Permalink
CATROID-1121 Refactor MainMenuActivity and related files to Kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
khushal1707 committed Jul 20, 2021
1 parent a2b4c22 commit 92be542
Show file tree
Hide file tree
Showing 7 changed files with 556 additions and 514 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 @@ -37,7 +37,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 @@ -147,8 +147,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
351 changes: 0 additions & 351 deletions catroid/src/main/java/org/catrobat/catroid/ui/MainMenuActivity.java

This file was deleted.

Loading

0 comments on commit 92be542

Please sign in to comment.