Don't start wizard flow on atv when gms is present

This matches the behaviour prior to the Lineage suw revamp on 21.
Setupwraith hooks things in a completely different manner to the mobile
gms suw. The Lineage suw should not run at all when atv gms is present,
but the apk still needs to be available should the tvsetup intent hooks
get implemented.

Change-Id: Ic4943e8fd55d30fbd2856dc5eadc5a0ce6282f29
This commit is contained in:
Aaron Kling
2024-04-21 00:16:44 -05:00
committed by Bruno Martins
parent 5dd3549573
commit 3ed0a33ee7

View File

@@ -31,6 +31,10 @@ public class SetupWizardActivity extends AppCompatActivity {
if (LOGV) { if (LOGV) {
Log.v(TAG, "onCreate savedInstanceState=" + savedInstanceState); Log.v(TAG, "onCreate savedInstanceState=" + savedInstanceState);
} }
if (SetupWizardUtils.hasLeanback(this) && SetupWizardUtils.hasGMS(this)) {
finish();
return;
}
SetupWizardUtils.enableComponent(this, WizardManager.class); SetupWizardUtils.enableComponent(this, WizardManager.class);
Intent intent = new Intent(ACTION_LOAD); Intent intent = new Intent(ACTION_LOAD);
if (SetupWizardUtils.isOwner()) { if (SetupWizardUtils.isOwner()) {