Support App details for work profile apps
App info page stopped supporting the App details feature for work profile apps in Android N but there is no exact reason from the history. Try supporting it again to fulfill users' requests and check for exceptions. Bug: 264932611 Test: manual & robo and unit tests Change-Id: I1227cff5e25313905952ba54ab0270cdf4f00fd4
This commit is contained in:
@@ -18,7 +18,6 @@ package com.android.settings.applications.appinfo;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.UserManager;
|
||||
|
||||
import androidx.preference.Preference;
|
||||
|
||||
@@ -39,10 +38,6 @@ public class AppInstallerInfoPreferenceController extends AppInfoPreferenceContr
|
||||
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
if (UserManager.get(mContext).isManagedProfile()) {
|
||||
return DISABLED_FOR_USER;
|
||||
}
|
||||
|
||||
if (AppUtils.isMainlineModule(mContext.getPackageManager(), mPackageName)) {
|
||||
return DISABLED_FOR_USER;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user