Browse Source

Convert BaseLanguageActivity to kotlin

renovate/org.robolectric-robolectric-4.x
Ammar Githam 4 years ago
parent
commit
5452ea74f4
  1. 29
      app/src/main/java/awais/instagrabber/activities/BaseLanguageActivity.kt

29
app/src/main/java/awais/instagrabber/activities/BaseLanguageActivity.kt

@ -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)
}
}
}
Loading…
Cancel
Save