App: Migrate from Java to Kotlin
Based on changes from refactor branch for code parity Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
parent
35b70c5e9e
commit
273b09a3e8
12 changed files with 298 additions and 298 deletions
|
|
@ -191,7 +191,7 @@ public class MainActivity extends AppCompatActivity {
|
|||
NotificationWorker.initialize(this);
|
||||
}
|
||||
if (!UpdateSettingsFragment.wasUserAskedForConsent(this)
|
||||
&& !App.getApp().isFirstRun()
|
||||
&& !App.getInstance().isFirstRun()
|
||||
&& ReleaseVersionUtil.INSTANCE.isReleaseApk()) {
|
||||
UpdateSettingsFragment.askForConsentToUpdateChecks(this);
|
||||
}
|
||||
|
|
@ -203,7 +203,7 @@ public class MainActivity extends AppCompatActivity {
|
|||
protected void onPostCreate(final Bundle savedInstanceState) {
|
||||
super.onPostCreate(savedInstanceState);
|
||||
|
||||
final App app = App.getApp();
|
||||
final App app = App.getInstance();
|
||||
|
||||
if (sharedPreferences.getBoolean(app.getString(R.string.update_app_key), false)
|
||||
&& sharedPreferences
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue