{"action":"created","comment":{"url":"https://api.github.com/repos/bajiepkasmile/YandexApp/pulls/comments/74252058","id":74252058,"diff_hunk":"@@ -0,0 +1,118 @@\n+package com.domain.yandexapp.ui.activities;\n+\n+import android.content.Intent;\n+import android.content.IntentFilter;\n+import android.net.Uri;\n+import android.os.Bundle;\n+import android.support.annotation.IdRes;\n+import android.support.annotation.Nullable;\n+import android.support.v4.app.Fragment;\n+import android.support.v7.app.AppCompatActivity;\n+import android.view.Menu;\n+import android.view.MenuItem;\n+\n+import com.domain.yandexapp.App;\n+import com.domain.yandexapp.R;\n+import com.domain.yandexapp.domain.interactors.LoadArtistsInteractor;\n+import com.domain.yandexapp.domain.interactors.listeners.OnArtistsLoadListener;\n+import com.domain.yandexapp.ui.fragments.AboutFragment;\n+import com.domain.yandexapp.ui.fragments.ArtistDetailsFragment;\n+import com.domain.yandexapp.ui.fragments.ArtistsListFragment;\n+import com.domain.yandexapp.ui.fragments.FeedbackFragment;\n+import com.domain.yandexapp.ui.interfaces.ArtistDetailsNavigator;\n+import com.domain.yandexapp.ui.interfaces.ArtistsListNavigator;\n+import com.domain.yandexapp.domain.recievers.HeadsetReciever;\n+\n+import javax.inject.Inject;\n+\n+public class MainActivity extends AppCompatActivity\n+        implements OnArtistsLoadListener, ArtistsListNavigator, ArtistDetailsNavigator {\n+\n+    HeadsetReciever reciever;\n+\n+    @Inject\n+    LoadArtistsInteractor loadInteractor;\n+\n+    @Override\n+    protected void onCreate(@Nullable Bundle savedInstanceState) {\n+        super.onCreate(savedInstanceState);\n+        App.getComponent(this).inject(this);\n+\n+        if (savedInstanceState == null) {\n+            loadInteractor.setListener(this);\n+            loadInteractor.execute();\n+        } else {\n+            if (!loadInteractor.isRunning()) {\n+                setContentView(R.layout.main);\n+            }\n+        }\n+    }\n+\n+    @Override\n+    protected void onResume() {\n+        super.onResume();\n+        registerHeadsetReciever();\n+    }\n+\n+    @Override\n+    protected void onPause() {\n+        super.onPause();\n+        unregisterReceiver(reciever);\n+    }\n+\n+    @Override\n+    public boolean onCreateOptionsMenu(Menu menu) {\n+        getMenuInflater().inflate(R.menu.main, menu);\n+        return true;\n+    }\n+\n+    @Override\n+    public boolean onOptionsItemSelected(MenuItem item) {\n+        int id = item.getItemId();\n+\n+        if (id == android.R.id.home) {\n+            replaceFragment(R.id.fl_fragment_container, ArtistsListFragment.newInstance(), ArtistsListFragment.TAG);","path":"app/src/main/java/com/domain/yandexapp/ui/activities/MainActivity.java","position":74,"original_position":74,"commit_id":"c96f1693d8957078699ed3a67bdcb08e94fe1b2b","original_commit_id":"c96f1693d8957078699ed3a67bdcb08e94fe1b2b","user":{"login":"rgrigoryev","id":1064962,"avatar_url":"https://avatars.githubusercontent.com/u/1064962?v=3","gravatar_id":"","url":"https://api.github.com/users/rgrigoryev","html_url":"https://github.com/rgrigoryev","followers_url":"https://api.github.com/users/rgrigoryev/followers","following_url":"https://api.github.com/users/rgrigoryev/following{/other_user}","gists_url":"https://api.github.com/users/rgrigoryev/gists{/gist_id}","starred_url":"https://api.github.com/users/rgrigoryev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgrigoryev/subscriptions","organizations_url":"https://api.github.com/users/rgrigoryev/orgs","repos_url":"https://api.github.com/users/rgrigoryev/repos","events_url":"https://api.github.com/users/rgrigoryev/events{/privacy}","received_events_url":"https://api.github.com/users/rgrigoryev/received_events","type":"User","site_admin":false},"body":"Убери R.id.fl_fragment_container внутрь replaceFragment. Когда действительно понадобится два разных контейнера, тогда и начнешь передавать.","created_at":"2016-08-10T14:14:48Z","updated_at":"2016-08-10T14:14:48Z","html_url":"https://github.com/bajiepkasmile/YandexApp/pull/1#discussion_r74252058","pull_request_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/bajiepkasmile/YandexApp/pulls/comments/74252058"},"html":{"href":"https://github.com/bajiepkasmile/YandexApp/pull/1#discussion_r74252058"},"pull_request":{"href":"https://api.github.com/repos/bajiepkasmile/YandexApp/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/bajiepkasmile/YandexApp/pulls/1","id":78078947,"html_url":"https://github.com/bajiepkasmile/YandexApp/pull/1","diff_url":"https://github.com/bajiepkasmile/YandexApp/pull/1.diff","patch_url":"https://github.com/bajiepkasmile/YandexApp/pull/1.patch","issue_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/issues/1","number":1,"state":"closed","locked":false,"title":"Homework","user":{"login":"bajiepkasmile","id":16493506,"avatar_url":"https://avatars.githubusercontent.com/u/16493506?v=3","gravatar_id":"","url":"https://api.github.com/users/bajiepkasmile","html_url":"https://github.com/bajiepkasmile","followers_url":"https://api.github.com/users/bajiepkasmile/followers","following_url":"https://api.github.com/users/bajiepkasmile/following{/other_user}","gists_url":"https://api.github.com/users/bajiepkasmile/gists{/gist_id}","starred_url":"https://api.github.com/users/bajiepkasmile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajiepkasmile/subscriptions","organizations_url":"https://api.github.com/users/bajiepkasmile/orgs","repos_url":"https://api.github.com/users/bajiepkasmile/repos","events_url":"https://api.github.com/users/bajiepkasmile/events{/privacy}","received_events_url":"https://api.github.com/users/bajiepkasmile/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-20T02:21:47Z","updated_at":"2016-08-10T14:14:48Z","closed_at":"2016-07-20T02:24:51Z","merged_at":"2016-07-20T02:24:51Z","merge_commit_sha":"72a27b53f629608b34da1602be2ddc55a3d41559","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/pulls/1/commits","review_comments_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/pulls/1/comments","review_comment_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/issues/1/comments","statuses_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/statuses/c96f1693d8957078699ed3a67bdcb08e94fe1b2b","head":{"label":"bajiepkasmile:homework","ref":"homework","sha":"c96f1693d8957078699ed3a67bdcb08e94fe1b2b","user":{"login":"bajiepkasmile","id":16493506,"avatar_url":"https://avatars.githubusercontent.com/u/16493506?v=3","gravatar_id":"","url":"https://api.github.com/users/bajiepkasmile","html_url":"https://github.com/bajiepkasmile","followers_url":"https://api.github.com/users/bajiepkasmile/followers","following_url":"https://api.github.com/users/bajiepkasmile/following{/other_user}","gists_url":"https://api.github.com/users/bajiepkasmile/gists{/gist_id}","starred_url":"https://api.github.com/users/bajiepkasmile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajiepkasmile/subscriptions","organizations_url":"https://api.github.com/users/bajiepkasmile/orgs","repos_url":"https://api.github.com/users/bajiepkasmile/repos","events_url":"https://api.github.com/users/bajiepkasmile/events{/privacy}","received_events_url":"https://api.github.com/users/bajiepkasmile/received_events","type":"User","site_admin":false},"repo":{"id":56983404,"name":"YandexApp","full_name":"bajiepkasmile/YandexApp","owner":{"login":"bajiepkasmile","id":16493506,"avatar_url":"https://avatars.githubusercontent.com/u/16493506?v=3","gravatar_id":"","url":"https://api.github.com/users/bajiepkasmile","html_url":"https://github.com/bajiepkasmile","followers_url":"https://api.github.com/users/bajiepkasmile/followers","following_url":"https://api.github.com/users/bajiepkasmile/following{/other_user}","gists_url":"https://api.github.com/users/bajiepkasmile/gists{/gist_id}","starred_url":"https://api.github.com/users/bajiepkasmile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajiepkasmile/subscriptions","organizations_url":"https://api.github.com/users/bajiepkasmile/orgs","repos_url":"https://api.github.com/users/bajiepkasmile/repos","events_url":"https://api.github.com/users/bajiepkasmile/events{/privacy}","received_events_url":"https://api.github.com/users/bajiepkasmile/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bajiepkasmile/YandexApp","description":"","fork":false,"url":"https://api.github.com/repos/bajiepkasmile/YandexApp","forks_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/forks","keys_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/teams","hooks_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/hooks","issue_events_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/issues/events{/number}","events_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/events","assignees_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/assignees{/user}","branches_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/branches{/branch}","tags_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/tags","blobs_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/statuses/{sha}","languages_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/languages","stargazers_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/stargazers","contributors_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/contributors","subscribers_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/subscribers","subscription_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/subscription","commits_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/contents/{+path}","compare_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/merges","archive_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/downloads","issues_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/issues{/number}","pulls_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/pulls{/number}","milestones_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/milestones{/number}","notifications_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/labels{/name}","releases_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/releases{/id}","deployments_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/deployments","created_at":"2016-04-24T16:58:11Z","updated_at":"2016-04-24T17:02:22Z","pushed_at":"2016-07-20T02:24:51Z","git_url":"git://github.com/bajiepkasmile/YandexApp.git","ssh_url":"git@github.com:bajiepkasmile/YandexApp.git","clone_url":"https://github.com/bajiepkasmile/YandexApp.git","svn_url":"https://github.com/bajiepkasmile/YandexApp","homepage":null,"size":273,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bajiepkasmile:master","ref":"master","sha":"e85b035602fe9cf3e8127d94b7a57b4a174f49f7","user":{"login":"bajiepkasmile","id":16493506,"avatar_url":"https://avatars.githubusercontent.com/u/16493506?v=3","gravatar_id":"","url":"https://api.github.com/users/bajiepkasmile","html_url":"https://github.com/bajiepkasmile","followers_url":"https://api.github.com/users/bajiepkasmile/followers","following_url":"https://api.github.com/users/bajiepkasmile/following{/other_user}","gists_url":"https://api.github.com/users/bajiepkasmile/gists{/gist_id}","starred_url":"https://api.github.com/users/bajiepkasmile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajiepkasmile/subscriptions","organizations_url":"https://api.github.com/users/bajiepkasmile/orgs","repos_url":"https://api.github.com/users/bajiepkasmile/repos","events_url":"https://api.github.com/users/bajiepkasmile/events{/privacy}","received_events_url":"https://api.github.com/users/bajiepkasmile/received_events","type":"User","site_admin":false},"repo":{"id":56983404,"name":"YandexApp","full_name":"bajiepkasmile/YandexApp","owner":{"login":"bajiepkasmile","id":16493506,"avatar_url":"https://avatars.githubusercontent.com/u/16493506?v=3","gravatar_id":"","url":"https://api.github.com/users/bajiepkasmile","html_url":"https://github.com/bajiepkasmile","followers_url":"https://api.github.com/users/bajiepkasmile/followers","following_url":"https://api.github.com/users/bajiepkasmile/following{/other_user}","gists_url":"https://api.github.com/users/bajiepkasmile/gists{/gist_id}","starred_url":"https://api.github.com/users/bajiepkasmile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajiepkasmile/subscriptions","organizations_url":"https://api.github.com/users/bajiepkasmile/orgs","repos_url":"https://api.github.com/users/bajiepkasmile/repos","events_url":"https://api.github.com/users/bajiepkasmile/events{/privacy}","received_events_url":"https://api.github.com/users/bajiepkasmile/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bajiepkasmile/YandexApp","description":"","fork":false,"url":"https://api.github.com/repos/bajiepkasmile/YandexApp","forks_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/forks","keys_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/teams","hooks_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/hooks","issue_events_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/issues/events{/number}","events_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/events","assignees_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/assignees{/user}","branches_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/branches{/branch}","tags_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/tags","blobs_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/statuses/{sha}","languages_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/languages","stargazers_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/stargazers","contributors_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/contributors","subscribers_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/subscribers","subscription_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/subscription","commits_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/contents/{+path}","compare_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/merges","archive_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/downloads","issues_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/issues{/number}","pulls_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/pulls{/number}","milestones_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/milestones{/number}","notifications_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/labels{/name}","releases_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/releases{/id}","deployments_url":"https://api.github.com/repos/bajiepkasmile/YandexApp/deployments","created_at":"2016-04-24T16:58:11Z","updated_at":"2016-04-24T17:02:22Z","pushed_at":"2016-07-20T02:24:51Z","git_url":"git://github.com/bajiepkasmile/YandexApp.git","ssh_url":"git@github.com:bajiepkasmile/YandexApp.git","clone_url":"https://github.com/bajiepkasmile/YandexApp.git","svn_url":"https://github.com/bajiepkasmile/YandexApp","homepage":null,"size":273,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bajiepkasmile/YandexApp/pulls/1"},"html":{"href":"https://github.com/bajiepkasmile/YandexApp/pull/1"},"issue":{"href":"https://api.github.com/repos/bajiepkasmile/YandexApp/issues/1"},"comments":{"href":"https://api.github.com/repos/bajiepkasmile/YandexApp/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/bajiepkasmile/YandexApp/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/bajiepkasmile/YandexApp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bajiepkasmile/YandexApp/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/bajiepkasmile/YandexApp/statuses/c96f1693d8957078699ed3a67bdcb08e94fe1b2b"}}}}
{"actor":{"display_login":"rgrigoryev"}}