Compare commits
5 Commits
settings_p
...
settings_p
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d2ae5be3ea | ||
|
|
21b857959b | ||
|
|
66b6170c43 | ||
|
|
b8f3064510 | ||
|
|
f06dbd7927 |
@@ -14,7 +14,7 @@ public class ActivityManager {
|
||||
|
||||
private final IInterface manager;
|
||||
private Method getContentProviderExternalMethod;
|
||||
private boolean getContentProviderExternalMethodNewVersion = true;
|
||||
private boolean getContentProviderExternalMethodLegacy;
|
||||
private Method removeContentProviderExternalMethod;
|
||||
|
||||
public ActivityManager(IInterface manager) {
|
||||
@@ -29,7 +29,7 @@ public class ActivityManager {
|
||||
} catch (NoSuchMethodException e) {
|
||||
// old version
|
||||
getContentProviderExternalMethod = manager.getClass().getMethod("getContentProviderExternal", String.class, int.class, IBinder.class);
|
||||
getContentProviderExternalMethodNewVersion = false;
|
||||
getContentProviderExternalMethodLegacy = true;
|
||||
}
|
||||
}
|
||||
return getContentProviderExternalMethod;
|
||||
@@ -46,7 +46,7 @@ public class ActivityManager {
|
||||
try {
|
||||
Method method = getGetContentProviderExternalMethod();
|
||||
Object[] args;
|
||||
if (getContentProviderExternalMethodNewVersion) {
|
||||
if (!getContentProviderExternalMethodLegacy) {
|
||||
// new version
|
||||
args = new Object[]{name, ServiceManager.USER_ID, token, null};
|
||||
} else {
|
||||
|
||||
@@ -12,7 +12,7 @@ public class StatusBarManager {
|
||||
private final IInterface manager;
|
||||
private Method expandNotificationsPanelMethod;
|
||||
private Method expandSettingsPanelMethod;
|
||||
private boolean expandSettingsPanelMethodNewVersion = true;
|
||||
private boolean expandSettingsPanelMethodLegacy;
|
||||
private Method collapsePanelsMethod;
|
||||
|
||||
public StatusBarManager(IInterface manager) {
|
||||
@@ -34,7 +34,7 @@ public class StatusBarManager {
|
||||
} catch (NoSuchMethodException e) {
|
||||
// old version
|
||||
expandSettingsPanelMethod = manager.getClass().getMethod("expandSettingsPanel");
|
||||
expandSettingsPanelMethodNewVersion = false;
|
||||
expandSettingsPanelMethodLegacy = true;
|
||||
}
|
||||
}
|
||||
return expandSettingsPanelMethod;
|
||||
@@ -59,7 +59,7 @@ public class StatusBarManager {
|
||||
public void expandSettingsPanel() {
|
||||
try {
|
||||
Method method = getExpandSettingsPanel();
|
||||
if (expandSettingsPanelMethodNewVersion) {
|
||||
if (!expandSettingsPanelMethodLegacy) {
|
||||
// new version
|
||||
method.invoke(manager, (Object) null);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user