don't proceed with publish if optimization is in progress.
This commit is contained in:
parent
19515fb407
commit
0f4f0e01ed
4 changed files with 8 additions and 0 deletions
|
@ -435,6 +435,11 @@ public class PublishFormFragment extends BaseFragment implements
|
|||
return;
|
||||
}
|
||||
|
||||
if (transcodeInProgress) {
|
||||
Snackbar.make(view, R.string.optimization_in_progress, Snackbar.LENGTH_LONG).show();
|
||||
return;
|
||||
}
|
||||
|
||||
// check minimum deposit
|
||||
String depositString = Helper.getValue(inputDeposit.getText());
|
||||
double depositAmount = 0;
|
||||
|
|
|
@ -129,6 +129,7 @@
|
|||
<string name="sdk_initializing_publish">U kan nie op die oomblik inhoud publiseer nie, omdat die agtergronddiens steeds initialiseer.</string>
|
||||
<string name="publish_successful">U inhoud is suksesvol gepubliseer. Dit kan \'n paar oomblikke neem om op die blockchain te verskyn.</string>
|
||||
<string name="transcode_in_progress">Videooptimalisering is aan die gang. Druk Annuleer onderaan die bladsy as u wil kanselleer.</string>
|
||||
<string name="optimization_in_progress">Videooptimalisering is aan die gang.</string>
|
||||
<string name="cannot_capture_video">Daar is geen kamera-app beskikbaar om video\'s op hierdie toestel op te neem nie.</string>
|
||||
<string name="cannot_take_photo">Daar is geen kamera-app beskikbaar om foto\'s op hierdie toestel te neem nie.</string>
|
||||
|
||||
|
|
|
@ -141,6 +141,7 @@ No puede publicar contenido en este momento porque el servicio en segundo plano
|
|||
<string name="publish_successful">
|
||||
Su contenido fue publicado con éxito. Puede tardar unos minutos en aparecer en la cadena de bloques.</string>
|
||||
<string name="transcode_in_progress">La optimización de video está en progreso. Si desea cancelar, presione Cancelar en la parte inferior de la página.</string>
|
||||
<string name="optimization_in_progress">La optimización de video está en progreso.</string>
|
||||
<string name="cannot_capture_video">No hay una aplicación de cámara disponible para grabar videos en este dispositivo.</string>
|
||||
<string name="cannot_take_photo">No hay una aplicación de cámara disponible para tomar fotos en este dispositivo.</string>
|
||||
|
||||
|
|
|
@ -129,6 +129,7 @@
|
|||
<string name="sdk_initializing_publish">You cannot publish content right now because the background service is still initializing.</string>
|
||||
<string name="publish_successful">Your content was successfully published. It may take a few moments to appear on the blockchain.</string>
|
||||
<string name="transcode_in_progress">Video optimization is in progress. If you wish to cancel, press Cancel at the bottom of the page.</string>
|
||||
<string name="optimization_in_progress">Video optimization is in progress.</string>
|
||||
<string name="cannot_capture_video">There is no camera app available to record videos on this device.</string>
|
||||
<string name="cannot_take_photo">There is no camera app available to take photos on this device.</string>
|
||||
|
||||
|
|
Loading…
Reference in a new issue