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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user