Fixed download button popping up after animation finishes

This commit is contained in:
Martijn Brekhof 2015-11-23 15:48:32 +01:00
parent db609e84e5
commit a871b15308
2 changed files with 4 additions and 2 deletions

View File

@ -193,6 +193,8 @@ public class MovieDetailsFragment extends AbstractDetailsFragment
// UIUtils.setPaddingForSystemBars(getActivity(), mediaPanel, false, false, true);
// mediaPanel.setClipToPadding(false);
//Disable download button until loader has finished and download info is available
downloadButton.setEnabled(false);
return root;
}
@ -539,7 +541,7 @@ public class MovieDetailsFragment extends AbstractDetailsFragment
movieTitle, cursor.getString(MovieDetailsQuery.FILE));
// Check if downloaded file exists
downloadButton.setVisibility(View.VISIBLE);
downloadButton.setEnabled(true);
if (movieDownloadInfo.downloadFileExists()) {
Resources.Theme theme = getActivity().getTheme();
TypedArray styledAttributes = theme.obtainStyledAttributes(new int[]{

View File

@ -125,7 +125,7 @@
style="@style/Widget.Button.Borderless"
android:src="?attr/iconDownload"
android:contentDescription="@string/download"
android:visibility="gone"/>
/>
<ImageButton
android:id="@+id/seen"
android:layout_width="@dimen/buttonbar_button_width"