From 2ccd4801fe6d90f7370426b26d6200ec7d3fc2ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Rutkowski?= Date: Sat, 23 Sep 2017 18:05:39 +0200 Subject: [PATCH] Fix pull request activity not scrolling to initial comment The content was being initialized twice because of callback in head reference loading. We forgot to remove this call after making head reference not required to display main content. --- app/src/main/java/com/gh4a/activities/PullRequestActivity.java | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/java/com/gh4a/activities/PullRequestActivity.java b/app/src/main/java/com/gh4a/activities/PullRequestActivity.java index de785ff33..e9acd29b3 100644 --- a/app/src/main/java/com/gh4a/activities/PullRequestActivity.java +++ b/app/src/main/java/com/gh4a/activities/PullRequestActivity.java @@ -184,7 +184,6 @@ protected Loader> onCreateLoader() { protected void onResultReady(Reference result) { mHeadReference = result; mHasLoadedHeadReference = true; - showContentIfReady(); supportInvalidateOptionsMenu(); getSupportLoaderManager().destroyLoader(3); }