1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-12-23 05:16:58 +00:00

Convert BaseLanguageActivity to kotlin

This commit is contained in:
Ammar Githam 2021-05-28 08:16:15 +09:00
parent 31faadb930
commit 5452ea74f4

View File

@ -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;
import androidx.appcompat.app.AppCompatActivity;
import awais.instagrabber.utils.LocaleUtils;
import awais.instagrabber.utils.ThemeUtils;
public abstract class BaseLanguageActivity extends AppCompatActivity {
protected BaseLanguageActivity() {
LocaleUtils.updateConfig(this);
abstract class BaseLanguageActivity protected constructor() : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
ThemeUtils.changeTheme(this)
super.onCreate(savedInstanceState)
}
@Override
protected void onCreate(@Nullable final Bundle savedInstanceState) {
ThemeUtils.changeTheme(this);
super.onCreate(savedInstanceState);
init {
@Suppress("LeakingThis")
LocaleUtils.updateConfig(this)
}
}
}