diff options
author | nebkat <nebkat@teamhacksung.org> | 2013-01-01 15:53:29 +0000 |
---|---|---|
committer | nebkat <nebkat@teamhacksung.org> | 2013-01-01 15:53:29 +0000 |
commit | c8a095f734d520f23ac32184189d5ddc2f9274de (patch) | |
tree | 4def9dbed825bcd10eee095a873b584cadc27c54 /src/com/cyanogenmod/trebuchet/LauncherModel.java | |
parent | f86587daf576f09d0c0864b3555e8175084972ce (diff) | |
download | android_packages_apps_Trebuchet-c8a095f734d520f23ac32184189d5ddc2f9274de.tar.gz android_packages_apps_Trebuchet-c8a095f734d520f23ac32184189d5ddc2f9274de.tar.bz2 android_packages_apps_Trebuchet-c8a095f734d520f23ac32184189d5ddc2f9274de.zip |
ShortcutInfo: Save title if itemType shortcut
Change-Id: I7ce0bf8a2aea04131afb423407c09cdcf184febe
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/LauncherModel.java')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/LauncherModel.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/cyanogenmod/trebuchet/LauncherModel.java b/src/com/cyanogenmod/trebuchet/LauncherModel.java index 12fdb457e..501058e86 100644 --- a/src/com/cyanogenmod/trebuchet/LauncherModel.java +++ b/src/com/cyanogenmod/trebuchet/LauncherModel.java @@ -435,13 +435,13 @@ public class LauncherModel extends BroadcastReceiver { /** * Returns true if the shortcuts already exists in the database. - * we identify a shortcut by its title and intent. + * we identify a shortcut by its intent. */ - static boolean shortcutExists(Context context, String title, Intent intent) { + static boolean shortcutExists(Context context, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, - new String[] { "title", "intent" }, "title=? and intent=?", - new String[] { title, intent.toUri(0) }, null); + new String[] { "intent" }, "intent=?", + new String[] { intent.toUri(0) }, null); boolean result = false; try { result = c.moveToFirst(); |