Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Migrate to AndroidX #43

Open
guger opened this issue Oct 18, 2018 · 1 comment
Open

Migrate to AndroidX #43

guger opened this issue Oct 18, 2018 · 1 comment

Comments

@guger
Copy link

guger commented Oct 18, 2018

As the AndroidX version of AppCompat is stable now, I'd recommend to update.

@defvs
Copy link

defvs commented Jun 28, 2020

It's as simple as changing the imports in the files.

import io.multimoon.colorful.BaseTheme
import io.multimoon.colorful.CThemeInterface
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity

open class ThemedActivity : AppCompatActivity(), CThemeInterface {
	
	override var themeString: String = ""
	
	override fun onCreate(savedInstanceState: Bundle?) {
		super.onCreate(savedInstanceState)
		handleOnCreate(this, savedInstanceState, BaseTheme.THEME_APPCOMPAT)
	}
	
	override fun onResume() {
		super.onResume()
		handleOnResume(this)
	}
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants