Skip to content

Commit

Permalink
Augment a previous commit by adding it to ActionBarItem.Type
Browse files Browse the repository at this point in the history
Turkish & German translations are still missing ...
  • Loading branch information
Cyril Mottier committed Sep 1, 2011
1 parent 6e630e6 commit d587a44
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions GreenDroid/res/values-fr/gd_strings.xml
Expand Up @@ -33,6 +33,7 @@
<string name="gd_add">Ajouter</string>
<string name="gd_star">Ajouter aux favoris</string>
<string name="gd_sort_by_size">Trier par taille</string>
<string name="gd_sort_alpha">Trier alphabétiquement</string>
<string name="gd_locate_myself">Me localiser</string>
<string name="gd_compass">Naviguer</string>
<string name="gd_help">Aide</string>
Expand Down
1 change: 1 addition & 0 deletions GreenDroid/res/values/gd_strings.xml
Expand Up @@ -33,6 +33,7 @@
<string name="gd_add">Add</string>
<string name="gd_star">Star</string>
<string name="gd_sort_by_size">Sort by size</string>
<string name="gd_sort_alpha">Sort alphabetically</string>
<string name="gd_locate_myself">Locate myself</string>
<string name="gd_compass">Compass</string>
<string name="gd_help">Help</string>
Expand Down
6 changes: 6 additions & 0 deletions GreenDroid/src/greendroid/widget/ActionBarItem.java
Expand Up @@ -46,6 +46,7 @@ public enum Type {
Add, // A plus sign
Star, // A star
SortBySize, // Some bars
SortAlphabetically, // A-Z
LocateMyself, // A surrounded dot
Compass,
Help,
Expand Down Expand Up @@ -217,6 +218,11 @@ static ActionBarItem createWithType(ActionBar actionBar, ActionBarItem.Type type
drawableId = R.drawable.gd_action_bar_sort_by_size;
descriptionId = R.string.gd_sort_by_size;
break;

case SortAlphabetically:
drawableId = R.drawable.gd_action_bar_sort_alpha;
descriptionId = R.string.gd_sort_alpha;
break;

case LocateMyself:
drawableId = R.drawable.gd_action_bar_locate_myself;
Expand Down

0 comments on commit d587a44

Please sign in to comment.