File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed
src/main/java/com/github/mobile/ui/repo Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 20
20
android : id =" @+id/m_star"
21
21
android : showAsAction =" never"
22
22
android : title =" @string/star" />
23
+ <item
24
+ android : id =" @+id/m_share"
25
+ android : showAsAction =" never"
26
+ android : title =" @string/share" />
23
27
24
- </menu >
28
+ </menu >
Original file line number Diff line number Diff line change 16
16
-->
17
17
<menu xmlns : android =" http://schemas.android.com/apk/res/android" >
18
18
19
- <item
20
- android : id =" @+id/m_share"
21
- android : showAsAction =" never"
22
- android : title =" @string/share" />
23
19
24
- </menu >
20
+
21
+ </menu >
Original file line number Diff line number Diff line change @@ -127,10 +127,7 @@ protected void onException(Exception e) throws RuntimeException {
127
127
128
128
@ Override
129
129
public boolean onCreateOptionsMenu (Menu optionsMenu ) {
130
- MenuInflater inflater = getSupportMenuInflater ();
131
- inflater .inflate (menu .repository_star , optionsMenu );
132
- inflater .inflate (menu .repository_share , optionsMenu );
133
-
130
+ getSupportMenuInflater ().inflate (menu .repository , optionsMenu );
134
131
return super .onCreateOptionsMenu (optionsMenu );
135
132
}
136
133
@@ -283,4 +280,4 @@ private void shareRepositoryURL() {
283
280
startActivity (Intent .createChooser (sharingIntent , getResources ()
284
281
.getText (string .share_repo )));
285
282
}
286
- }
283
+ }
You can’t perform that action at this time.
0 commit comments