From e74a54343ce7896b5005154e8bcbc7d5f06c7808 Mon Sep 17 00:00:00 2001 From: Antonin Fouques Date: Wed, 17 Oct 2012 22:09:08 +0200 Subject: Trebuchet : Add a pref to set hotseat icon's number This adds a preference for the hotseat (Launcher main bar/dock) - Choose the number of icons on the hotseat - Choose the place of the applications drawer button by drag'n'drop - Translations in English + French This is usefull for big screen devices. You can set from 1 to 9 buttons on the hotseat. You can set the app button where you want by drag'n'drop. Default values are keeped unchanged so there is no pb with first screen tuto + no pb with default shortcuts. Demo video : https://www.dropbox.com/s/2wamj9yr1s3woxl/Trebuchet-hotseat-icons.mp4 Demo apk : https://www.dropbox.com/s/psqab2gyivcyo3d/CmoaToto%20Trebuchet.apk PatchSet 1 : initial commit PatchSet 2 : coding style PatchSet 3 : - Remove prefs for tablet - AllApps Button move by Drag'n'Drop (instead of pref) PatchSet 4 : searchbar & deletebar don't dis/appear while dragging AllApps button) PatchSet 5 : dropOnFlingToDeleteTarget disabled for AllApps button PatchSet 6 : - Fix shortcuts errors in database - Set docks pref disabled for large screen programmatically - Fix english strings/french trads Change-Id: I21f6a4610ed16c8780ccf6e2acffcf6e07511457 Conflicts: src/com/cyanogenmod/trebuchet/Hotseat.java src/com/cyanogenmod/trebuchet/LauncherModel.java src/com/cyanogenmod/trebuchet/Workspace.java --- src/com/cyanogenmod/trebuchet/Launcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/cyanogenmod/trebuchet/Launcher.java') diff --git a/src/com/cyanogenmod/trebuchet/Launcher.java b/src/com/cyanogenmod/trebuchet/Launcher.java index 588120414..9ef20c6aa 100644 --- a/src/com/cyanogenmod/trebuchet/Launcher.java +++ b/src/com/cyanogenmod/trebuchet/Launcher.java @@ -2445,7 +2445,7 @@ public final class Launcher extends Activity } public boolean isAllAppsButtonRank(int rank) { - return mHotseat.isAllAppsButtonRank(rank); + return (mHotseat != null) ? mHotseat.isAllAppsButtonRank(rank) : false; } /** -- cgit v1.2.3