Cred mng app settings - close onRemove

Remove credential management app and close
settings screen when remove button is selected

Manual testing steps:
* Set app as creg mng app
* Remove cred mng app via Settings
* Verify screen is closed on remove

Bug: 177909523
Test: manual testing
Change-Id: Ie38a5340a4985fb4997f353556f49e9589e8da5f
This commit is contained in:
Alex Johnston
2021-03-15 10:11:39 +00:00
parent 4082b27b0a
commit 6469518bf3
2 changed files with 25 additions and 29 deletions

View File

@@ -17,6 +17,7 @@
package com.android.settings.security;
import android.app.settings.SettingsEnums;
import android.content.Context;
import com.android.settings.R;
import com.android.settings.dashboard.DashboardFragment;
@@ -47,6 +48,12 @@ public class CredentialManagementAppFragment extends DashboardFragment {
return SettingsEnums.CREDENTIAL_MANAGEMENT_APP;
}
@Override
public void onAttach(Context context) {
super.onAttach(context);
use(CredentialManagementAppButtonsController.class).setParentFragment(this);
}
public static final BaseSearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
new BaseSearchIndexProvider(R.xml.credential_management_app_fragment);
}