OSDN Git Service

Prevent the inlining of ProviderConfig.AUTHORITY
authorSameer Padala <sxp@google.com>
Wed, 24 Sep 2014 01:04:38 +0000 (18:04 -0700)
committerSameer Padala <sxp@google.com>
Wed, 24 Sep 2014 01:08:58 +0000 (18:08 -0700)
This intern() statement prevents AUTHORITY from being inlined into
LauncherProvider.AUTHORITY and LauncherSettings.Favorites.CONTENT_URI. If this
string is inlined, then it can't be overridded by libraries that depend on it.

Change-Id: I588b394291b70a01e3008c908a6ccb9b6cdfb6b9

src/com/android/launcher3/config/ProviderConfig.java

index db25076..e8930d0 100644 (file)
@@ -18,5 +18,5 @@ package com.android.launcher3.config;
 
 public class ProviderConfig {
 
-    public static final String AUTHORITY = "com.android.launcher3.settings";
+    public static final String AUTHORITY = "com.android.launcher3.settings".intern();
 }