diff --git a/Code-Standards.md b/Code-Standards.md index b65dd8b..f8300b9 100644 --- a/Code-Standards.md +++ b/Code-Standards.md @@ -76,9 +76,12 @@ GitNex app has used tabs(4 spaces) and it is recommended to use tab for indentat All statements should have proper indentation. Example, ``` popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() { + @Override public boolean onMenuItemClick(MenuItem item) { + switch (item.getItemId()) { + case R.id.repoStargazers: Intent intent = new Intent(context, RepoStargazersActivity.class); @@ -101,8 +104,11 @@ popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() { break; } + return false; + } + }); ```