Skip to content

Commit a34d2c9

Browse files
committed
replaced deprecated getIntent with parseURI
Change-Id: Ice9e74fd8f729d7efad934d2de4c747d73be562e
1 parent d6c1919 commit a34d2c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/java/android/provider/Settings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3779,7 +3779,7 @@ public static Intent getIntentForShortcut(ContentResolver cr, char shortcut)
37793779
while (intent == null && c.moveToNext()) {
37803780
try {
37813781
String intentURI = c.getString(c.getColumnIndexOrThrow(INTENT));
3782-
intent = Intent.getIntent(intentURI);
3782+
intent = Intent.parseUri(intentURI, 0);
37833783
} catch (java.net.URISyntaxException e) {
37843784
// The stored URL is bad... ignore it.
37853785
} catch (IllegalArgumentException e) {
@@ -3889,7 +3889,7 @@ public static CharSequence getTitle(Context context, Cursor cursor) {
38893889

38903890
Intent intent;
38913891
try {
3892-
intent = Intent.getIntent(intentUri);
3892+
intent = Intent.parseUri(intentUri, 0);
38933893
} catch (URISyntaxException e) {
38943894
return "";
38953895
}

0 commit comments

Comments
 (0)