Mark third party installs

This commit is contained in:
M66B
2018-09-09 06:09:59 +00:00
parent 710b72b5e8
commit 3943ea1807
2 changed files with 8 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.util.Log;
import java.util.List;
@@ -42,6 +43,11 @@ public class ActivityMain extends AppCompatActivity implements FragmentManager.O
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(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)) {
DB.getInstance(this).account().liveAccounts(true).observe(this, new Observer<List<EntityAccount>>() {
@Override