Merge "Fix the NPE when input a wrong package" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
baa58563bf
@@ -105,6 +105,11 @@ public class AppLaunchSettings extends AppInfoBase implements
|
|||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
if (mAppEntry == null) {
|
||||||
|
Log.w(TAG, "onCreate: mAppEntry is null, please check the reason!!!");
|
||||||
|
getActivity().finish();
|
||||||
|
return;
|
||||||
|
}
|
||||||
addPreferencesFromResource(R.xml.installed_app_launch_settings);
|
addPreferencesFromResource(R.xml.installed_app_launch_settings);
|
||||||
mDomainVerificationManager = mContext.getSystemService(DomainVerificationManager.class);
|
mDomainVerificationManager = mContext.getSystemService(DomainVerificationManager.class);
|
||||||
initUIComponents();
|
initUIComponents();
|
||||||
|
Reference in New Issue
Block a user