OSDN Git Service

replaced deprecated getIntent with parseURI
authorChristian Mehlmauer <FireFart@gmail.com>
Tue, 25 May 2010 17:04:20 +0000 (19:04 +0200)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 5 Aug 2011 08:05:32 +0000 (16:05 +0800)
Change-Id: Ice9e74fd8f729d7efad934d2de4c747d73be562e

core/java/android/provider/Settings.java

index 741dddd..8b314f1 100644 (file)
@@ -3619,7 +3619,7 @@ public final class Settings {
                 while (intent == null && c.moveToNext()) {
                     try {
                         String intentURI = c.getString(c.getColumnIndexOrThrow(INTENT));
-                        intent = Intent.getIntent(intentURI);
+                        intent = Intent.parseUri(intentURI, 0);
                     } catch (java.net.URISyntaxException e) {
                         // The stored URL is bad...  ignore it.
                     } catch (IllegalArgumentException e) {
@@ -3729,7 +3729,7 @@ public final class Settings {
 
             Intent intent;
             try {
-                intent = Intent.getIntent(intentUri);
+                intent = Intent.parseUri(intentUri, 0);
             } catch (URISyntaxException e) {
                 return "";
             }