mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 06:37:30 +00:00
Convert BaseLanguageActivity to kotlin
This commit is contained in:
parent
31faadb930
commit
5452ea74f4
@ -1,21 +1,18 @@
|
|||||||
package awais.instagrabber.activities;
|
package awais.instagrabber.activities
|
||||||
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle
|
||||||
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
|
import awais.instagrabber.utils.LocaleUtils
|
||||||
|
import awais.instagrabber.utils.ThemeUtils
|
||||||
|
|
||||||
import androidx.annotation.Nullable;
|
abstract class BaseLanguageActivity protected constructor() : AppCompatActivity() {
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
|
ThemeUtils.changeTheme(this)
|
||||||
import awais.instagrabber.utils.LocaleUtils;
|
super.onCreate(savedInstanceState)
|
||||||
import awais.instagrabber.utils.ThemeUtils;
|
|
||||||
|
|
||||||
public abstract class BaseLanguageActivity extends AppCompatActivity {
|
|
||||||
protected BaseLanguageActivity() {
|
|
||||||
LocaleUtils.updateConfig(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
init {
|
||||||
protected void onCreate(@Nullable final Bundle savedInstanceState) {
|
@Suppress("LeakingThis")
|
||||||
ThemeUtils.changeTheme(this);
|
LocaleUtils.updateConfig(this)
|
||||||
super.onCreate(savedInstanceState);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user