mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 22:03:55 +01:00
Fix-Peer Review Buttons not get disabled after voting an Image for deletion (#5519)
* Fix-Peer Review Buttons not get disabled after voting an Image for deletion * Fix
This commit is contained in:
parent
42641644cb
commit
4c43bf2bd4
3 changed files with 25 additions and 0 deletions
|
|
@ -191,5 +191,9 @@ public class ReviewController {
|
|||
void onSuccess();
|
||||
|
||||
void onFailure();
|
||||
|
||||
void disableButtons();
|
||||
|
||||
void enableButtons();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -181,6 +181,24 @@ public class ReviewImageFragment extends CommonsDaggerSupportFragment {
|
|||
public void onFailure() {
|
||||
//do nothing
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is called when an image is being loaded
|
||||
* to disable the review buttons
|
||||
*/
|
||||
@Override
|
||||
public void disableButtons() {
|
||||
ReviewImageFragment.this.disableButtons();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is called when an image has
|
||||
* been loaded to enable the review buttons.
|
||||
*/
|
||||
@Override
|
||||
public void enableButtons() {
|
||||
ReviewImageFragment.this.enableButtons();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue