GitHub PullRequestReviewCommentEvent at 2014-05-16 18:13:27
Repository: megasoft-14
Actor: mansoursaid001
Payload: {"comment":{"url":"https://api.github.com/repos/ndomar/megasoft-14/pulls/comments/12752196","id":12752196,"diff_hunk":"@@ -143,115 +163,203 @@ public boolean onCreateOptionsMenu(Menu menu) {\n \t * Template method to show the profile of the user.\n \t * \n \t * @param view\n-\t * @return \n+\t * @return\n \t * @author Mohamed Farghal\n \t */\n \tpublic void showProfile(View view) {\n-\t\t\n-\t\tSharedPreferences settings = this.getSharedPreferences(Config.SETTING, 0);\n-\t\tint userId = settings.getInt(Config.USER_ID, -1);\t\n+\n+\t\tSharedPreferences settings = this.getSharedPreferences(Config.SETTING,\n+\t\t\t\t0);\n+\t\tuserId = settings.getInt(Config.USER_ID, -1);\n \t\tIntent intent = new Intent(this, GeneralProfileActivity.class);\n \t\tintent.putExtra(\"tangleId\", tangleId);\n \t\tintent.putExtra(\"userId\", userId);\n \t\tstartActivity(intent);\n \t}\n-\t\n-\t\n+\n \t/**\n \t * Initialize the navigation drawer trigger button on the action bar.\n \t * \n-\t * @param \n-\t * @return \n+\t * @param\n+\t * @return\n \t * @author Mohamed Farghal\n \t */\n-\tprivate void initializeDrawerToggle(){\n-\t    ActionBar actionBar = getActionBar();\n-\t    actionBar.setDisplayHomeAsUpEnabled(true);\n-\t    actionBar.setHomeButtonEnabled(true);\n-\t    mDrawerToggle = new ActionBarDrawerToggle(\n-\t            this,                      /* host Activity */\n-\t            drawer,                    /* DrawerLayout object */\n-\t            R.drawable.ic_drawer,             /* nav drawer image to replace 'Up' caret */\n-\t            R.string.navigation_drawer_open,  /* \"open drawer\" description for accessibility */\n-\t            R.string.navigation_drawer_close  /* \"close drawer\" description for accessibility */\n-\t    ) {\n-\t        @Override\n-\t        public void onDrawerClosed(View drawerView) {\n-\t            invalidateOptionsMenu(); // calls onPrepareOptionsMenu()\n-\t        }\n-\n-\t        @Override\n-\t        public void onDrawerOpened(View drawerView) {\n-\t            invalidateOptionsMenu(); // calls onPrepareOptionsMenu()\n-\t        }\n-\t    };\n-\n-\t    drawer.post(new Runnable() {\n-\t        @Override\n-\t        public void run() {\n-\t            mDrawerToggle.syncState();\n-\t        }\n-\t    });\n-\n-\t    drawer.setDrawerListener(mDrawerToggle);\n+\tprivate void initializeDrawerToggle() {\n+\t\tActionBar actionBar = getActionBar();\n+\t\tactionBar.setDisplayHomeAsUpEnabled(true);\n+\t\tactionBar.setHomeButtonEnabled(true);\n+\t\tmDrawerToggle = new ActionBarDrawerToggle(this, /* host Activity */\n+\t\tdrawer, /* DrawerLayout object */\n+\t\tR.drawable.ic_drawer, /* nav drawer image to replace 'Up' caret */","path":"Entangle/entangle-android/src/com/megasoft/entangle/HomeActivity.java","position":224,"original_position":214,"commit_id":"5150da797196cb5f1b3d00359b523bab70279a28","original_commit_id":"0f49e4593ad8ccb1379949038c6db9ab11fc11d2","user":{"login":"mansoursaid001","id":6771654,"avatar_url":"https://avatars.githubusercontent.com/u/6771654?","gravatar_id":"46be7541424d4eef7048b3f825130eca","url":"https://api.github.com/users/mansoursaid001","html_url":"https://github.com/mansoursaid001","followers_url":"https://api.github.com/users/mansoursaid001/followers","following_url":"https://api.github.com/users/mansoursaid001/following{/other_user}","gists_url":"https://api.github.com/users/mansoursaid001/gists{/gist_id}","starred_url":"https://api.github.com/users/mansoursaid001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mansoursaid001/subscriptions","organizations_url":"https://api.github.com/users/mansoursaid001/orgs","repos_url":"https://api.github.com/users/mansoursaid001/repos","events_url":"https://api.github.com/users/mansoursaid001/events{/privacy}","received_events_url":"https://api.github.com/users/mansoursaid001/received_events","type":"User","site_admin":false},"body":"This needs to be fixed in style i think","created_at":"2014-05-16T18:13:27Z","updated_at":"2014-05-16T18:13:28Z","html_url":"https://github.com/ndomar/megasoft-14/pull/502#discussion_r12752196","pull_request_url":"https://api.github.com/repos/ndomar/megasoft-14/pulls/502","_links":{"self":{"href":"https://api.github.com/repos/ndomar/megasoft-14/pulls/comments/12752196"},"html":{"href":"https://github.com/ndomar/megasoft-14/pull/502#discussion_r12752196"},"pull_request":{"href":"https://api.github.com/repos/ndomar/megasoft-14/pulls/502"}}}}