Skip to content

Commit

Permalink
Fix displaying apps in "Other apps" shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
willemw12 committed Apr 2, 2017
1 parent 5921d39 commit a886845
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
import com.google.code.appsorganizer.dialogs.SimpleDialog;
import com.google.code.appsorganizer.dialogs.TextEntryDialog;
import com.google.code.appsorganizer.model.Label;
import com.google.code.appsorganizer.shortcut.LabelShortcut;
import com.google.code.appsorganizer.shortcut.ShortcutCreator;

public class LabelListActivity extends ExpandableListActivityWithDialog implements GenericDialogManagerActivity {
Expand Down Expand Up @@ -326,7 +327,14 @@ public boolean onContextItemSelected(MenuItem item) {
} else if (type == ExpandableListView.PACKED_POSITION_TYPE_GROUP) {
final Cursor c = getExpandableListAdapter().getGroup(groupPos);
String labelName = c.getString(1);
final long labelId = c.getLong(0);

//FIXME "Other apps" shortcut
//final long labelId = c.getLong(0);
long labelId = c.getLong(0);
if (labelId == AppCacheDao.OTHER_LABEL_ID) {
labelId = LabelShortcut.OTHER_APPS;
}

switch (item.getItemId()) {
case MENU_ITEM_RENAME:
textEntryDialog.setDefaultValue(labelName);
Expand Down

0 comments on commit a886845

Please sign in to comment.