Skip to content

Commit 4bd0073

Browse files
Jean-Baptiste QueruAndroid Code Review
authored andcommitted
Merge "replaced deprecated getIntent with parseURI"
2 parents 5978bcc + a34d2c9 commit 4bd0073

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)