replaced deprecated getIntent with parseURI
Change-Id: Iabf82ff0f9be2a76dece9aafe8603bf83ac7d049
This commit is contained in:
@@ -204,7 +204,7 @@ public class QuickLaunchSettings extends PreferenceActivity implements
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean onItemLongClick(AdapterView parent, View view, int position, long id) {
|
public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {
|
||||||
|
|
||||||
// Open the clear shortcut dialog
|
// Open the clear shortcut dialog
|
||||||
Preference pref = (Preference) getPreferenceScreen().getRootAdapter().getItem(position);
|
Preference pref = (Preference) getPreferenceScreen().getRootAdapter().getItem(position);
|
||||||
@@ -314,7 +314,7 @@ public class QuickLaunchSettings extends PreferenceActivity implements
|
|||||||
String intentUri = c.getString(intentColumn);
|
String intentUri = c.getString(intentColumn);
|
||||||
PackageManager packageManager = getPackageManager();
|
PackageManager packageManager = getPackageManager();
|
||||||
try {
|
try {
|
||||||
Intent intent = Intent.getIntent(intentUri);
|
Intent intent = Intent.parseUri(intentUri, 0);
|
||||||
ResolveInfo info = packageManager.resolveActivity(intent, 0);
|
ResolveInfo info = packageManager.resolveActivity(intent, 0);
|
||||||
if (info != null) {
|
if (info != null) {
|
||||||
title = info.loadLabel(packageManager);
|
title = info.loadLabel(packageManager);
|
||||||
|
Reference in New Issue
Block a user