Remove temp GAIA education screen from PS setup code
With this change the temp GAIA education screen is removed from private space setup code and adds a new loading screen with "Just a sec" title in the activity while the gms intent in launched to fix blank screen issue. Screenrecording link: b/336822960#comment7 Bug: 336822960 Test: Manual Change-Id: I9ee41835b39c194fefb970321b7a9d5a30f87306
This commit is contained in:
@@ -29,6 +29,7 @@ import static com.android.settings.privatespace.PrivateSpaceSetupActivity.SET_LO
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.os.UserHandle;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.activity.result.ActivityResult;
|
||||
@@ -70,11 +71,20 @@ public class PrivateProfileContextHelperActivity extends FragmentActivity {
|
||||
if (savedInstanceState == null) {
|
||||
int action = getIntent().getIntExtra(EXTRA_ACTION_TYPE, -1);
|
||||
if (action == ACCOUNT_LOGIN_ACTION) {
|
||||
setContentView(R.layout.private_space_wait_screen);
|
||||
PrivateSpaceLoginFeatureProvider privateSpaceLoginFeatureProvider =
|
||||
FeatureFactory.getFeatureFactory().getPrivateSpaceLoginFeatureProvider();
|
||||
if (!privateSpaceLoginFeatureProvider.initiateAccountLogin(
|
||||
this, mAddAccountToPrivateProfile)) {
|
||||
setResult(RESULT_OK);
|
||||
UserHandle userHandle =
|
||||
PrivateSpaceMaintainer.getInstance(this).getPrivateProfileHandle();
|
||||
if (userHandle != null) {
|
||||
if (!privateSpaceLoginFeatureProvider.initiateAccountLogin(
|
||||
createContextAsUser(userHandle, 0), mAddAccountToPrivateProfile)) {
|
||||
setResult(RESULT_OK);
|
||||
finish();
|
||||
}
|
||||
} else {
|
||||
Log.w(TAG, "Private profile user handle is null");
|
||||
setResult(RESULT_CANCELED);
|
||||
finish();
|
||||
}
|
||||
} else if (action == SET_LOCK_ACTION) {
|
||||
|
||||
Reference in New Issue
Block a user