Fixed download button popping up after animation finishes
This commit is contained in:
parent
db609e84e5
commit
a871b15308
|
@ -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[]{
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue