Commit c0d7ef3 1 parent 76d8530 commit c0d7ef3 Copy full SHA for c0d7ef3
File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 21
21
import com .actionbarsherlock .view .Menu ;
22
22
import com .actionbarsherlock .view .MenuInflater ;
23
23
import com .actionbarsherlock .view .MenuItem ;
24
+ import com .joanzapata .android .iconify .IconDrawable ;
25
+ import com .joanzapata .android .iconify .Iconify .IconValue ;
24
26
25
27
/**
26
28
* Allows the user to create new Privly Content. Integrates the Posting
@@ -78,8 +80,15 @@ public boolean onConsoleMessage(ConsoleMessage cm) {
78
80
79
81
@ Override
80
82
public void onCreateOptionsMenu (Menu menu , MenuInflater menuInflater ) {
81
- super . onCreateOptionsMenu ( menu , menuInflater );
83
+ menu . clear ( );
82
84
menuInflater .inflate (R .layout .menu_layout_home , menu );
85
+ menu .findItem (R .id .logout ).setIcon (
86
+ new IconDrawable (getActivity (), IconValue .fa_sign_out )
87
+ .actionBarSize ());
88
+ menu .findItem (R .id .settings ).setIcon (
89
+ new IconDrawable (getActivity (), IconValue .fa_cog )
90
+ .actionBarSize ());
91
+ super .onCreateOptionsMenu (menu , menuInflater );
83
92
}
84
93
85
94
@ Override
You can’t perform that action at this time.
0 commit comments