|
@ -23,6 +23,7 @@ import android.content.Intent; |
|
|
import android.content.SharedPreferences; |
|
|
import android.content.SharedPreferences; |
|
|
import android.os.Bundle; |
|
|
import android.os.Bundle; |
|
|
import android.preference.PreferenceManager; |
|
|
import android.preference.PreferenceManager; |
|
|
|
|
|
import android.util.Log; |
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
|
|
|
|
|
@ -42,6 +43,11 @@ public class ActivityMain extends AppCompatActivity implements FragmentManager.O |
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); |
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); |
|
|
prefs.registerOnSharedPreferenceChangeListener(this); |
|
|
prefs.registerOnSharedPreferenceChangeListener(this); |
|
|
|
|
|
|
|
|
|
|
|
if (!Helper.isPlayStoreInstall(this)) { |
|
|
|
|
|
Log.i(Helper.TAG, "Third party install"); |
|
|
|
|
|
prefs.edit().putBoolean("play_store", false).apply(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (prefs.getBoolean("eula", false)) { |
|
|
if (prefs.getBoolean("eula", false)) { |
|
|
DB.getInstance(this).account().liveAccounts(true).observe(this, new Observer<List<EntityAccount>>() { |
|
|
DB.getInstance(this).account().liveAccounts(true).observe(this, new Observer<List<EntityAccount>>() { |
|
|
@Override |
|
|
@Override |
|
|