mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
parent
1c9267ca08
commit
ade568008d
1 changed files with 14 additions and 12 deletions
|
|
@ -145,19 +145,21 @@ public class UploadMediaDetailFragment extends UploadBaseFragment implements
|
|||
presenter.receiveImage(uploadableFile, place);
|
||||
initRecyclerView();
|
||||
|
||||
if (callback.getIndexInViewFlipper(this) == 0) {
|
||||
btnPrevious.setEnabled(false);
|
||||
btnPrevious.setAlpha(0.5f);
|
||||
} else {
|
||||
btnPrevious.setEnabled(true);
|
||||
btnPrevious.setAlpha(1.0f);
|
||||
}
|
||||
if (callback != null) {
|
||||
if (callback.getIndexInViewFlipper(this) == 0) {
|
||||
btnPrevious.setEnabled(false);
|
||||
btnPrevious.setAlpha(0.5f);
|
||||
} else {
|
||||
btnPrevious.setEnabled(true);
|
||||
btnPrevious.setAlpha(1.0f);
|
||||
}
|
||||
|
||||
//If this is the last media, we have nothing to copy, lets not show the button
|
||||
if (callback.getIndexInViewFlipper(this) == callback.getTotalNumberOfSteps()-4) {
|
||||
btnCopyToSubsequentMedia.setVisibility(View.GONE);
|
||||
} else {
|
||||
btnCopyToSubsequentMedia.setVisibility(View.VISIBLE);
|
||||
//If this is the last media, we have nothing to copy, lets not show the button
|
||||
if (callback.getIndexInViewFlipper(this) == callback.getTotalNumberOfSteps() - 4) {
|
||||
btnCopyToSubsequentMedia.setVisibility(View.GONE);
|
||||
} else {
|
||||
btnCopyToSubsequentMedia.setVisibility(View.VISIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
attachImageViewScaleChangeListener();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue