Fix notification on samsung (#2356)
```java
try {
this.mSystemUIContext = context.createPackageContext(AudioConstants.SYSTEMUI_PACKAGE_NAME, 0);
} catch (PackageManager.NameNotFoundException e) {
} catch (SecurityException e2) {
}
```
This commit is contained in:
parent
5ea3db130c
commit
ebf5bba4d8
|
|
@ -3,8 +3,10 @@ package org.lsposed.lspd.util;
|
|||
import static org.lsposed.lspd.service.ServiceManager.TAG;
|
||||
|
||||
import android.content.ContentResolver;
|
||||
import android.content.Context;
|
||||
import android.content.ContextWrapper;
|
||||
import android.content.pm.ApplicationInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.content.res.Resources;
|
||||
import android.os.UserHandle;
|
||||
import android.util.Log;
|
||||
|
|
@ -74,4 +76,9 @@ public class FakeContext extends ContextWrapper {
|
|||
public String getAttributionTag() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Context createPackageContext(String packageName, int flags) throws PackageManager.NameNotFoundException {
|
||||
throw new PackageManager.NameNotFoundException(packageName);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue