am e3f3d291: am 129d71d8: Merge "move the provider authority to a config class" into jb-ub-now-indigo-rose
* commit 'e3f3d291cd8505332f694fe02f0e2e6b36b64105': move the provider authority to a config class
This commit is contained in:
@@ -1623,6 +1623,7 @@ public class LauncherModel extends BroadcastReceiver {
|
|||||||
|
|
||||||
final ArrayList<Long> itemsToRemove = new ArrayList<Long>();
|
final ArrayList<Long> itemsToRemove = new ArrayList<Long>();
|
||||||
final Uri contentUri = LauncherSettings.Favorites.CONTENT_URI;
|
final Uri contentUri = LauncherSettings.Favorites.CONTENT_URI;
|
||||||
|
if (DEBUG_LOADERS) Log.d(TAG, "loading model from " + contentUri);
|
||||||
final Cursor c = contentResolver.query(contentUri, null, null, null, null);
|
final Cursor c = contentResolver.query(contentUri, null, null, null, null);
|
||||||
|
|
||||||
// +1 for the hotseat (it can be larger than the workspace)
|
// +1 for the hotseat (it can be larger than the workspace)
|
||||||
|
|||||||
@@ -49,8 +49,8 @@ import android.util.AttributeSet;
|
|||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.util.Xml;
|
import android.util.Xml;
|
||||||
|
|
||||||
import com.android.launcher3.LauncherSettings.BaseLauncherColumns;
|
|
||||||
import com.android.launcher3.LauncherSettings.Favorites;
|
import com.android.launcher3.LauncherSettings.Favorites;
|
||||||
|
import com.android.launcher3.config.ProviderConfig;
|
||||||
|
|
||||||
import org.xmlpull.v1.XmlPullParser;
|
import org.xmlpull.v1.XmlPullParser;
|
||||||
import org.xmlpull.v1.XmlPullParserException;
|
import org.xmlpull.v1.XmlPullParserException;
|
||||||
@@ -69,7 +69,7 @@ public class LauncherProvider extends ContentProvider {
|
|||||||
private static final int DATABASE_VERSION = 15;
|
private static final int DATABASE_VERSION = 15;
|
||||||
|
|
||||||
static final String OLD_AUTHORITY = "com.android.launcher2.settings";
|
static final String OLD_AUTHORITY = "com.android.launcher2.settings";
|
||||||
static final String AUTHORITY = "com.android.launcher3.settings";
|
static final String AUTHORITY = ProviderConfig.AUTHORITY;
|
||||||
|
|
||||||
static final String TABLE_FAVORITES = "favorites";
|
static final String TABLE_FAVORITES = "favorites";
|
||||||
static final String TABLE_WORKSPACE_SCREENS = "workspaceScreens";
|
static final String TABLE_WORKSPACE_SCREENS = "workspaceScreens";
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2013 The Android Open Source Project
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.android.launcher3.config;
|
||||||
|
|
||||||
|
public class ProviderConfig {
|
||||||
|
|
||||||
|
public static final String AUTHORITY = "com.android.launcher3.settings";
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user