-
-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Taking photos from the carousel shouldn't block the view #1724
Comments
According to #1593, we have to build the background tasks mechanism for all uploading process? it might need to modify serval configuration files for both android and ios... @g123k, I have never done that before, could you please tell me if it is feasible and reliable since we have to make this version stable for this moment? if the answer is yes, do you have some suggested background tasks framework? Thanks in advance😄 |
The idea here would be to use a package like Meanwhile, we have to fake the fact the photo is already uploaded. You also have to change the local product to link to that temp file. |
Given the sizeable amount of time to do this right before release, and the stability risk, I would unassign you @cli1005 (and reassign you on something more tactical) |
As I said before in #2174, for the moment we don't use background processes in Smoothie. They aren't that old in pure
If the question is: "Do we need it now before the next release?", my initial answer would be "No!". If there are performance issues - and I think there are, especially with low connectivity - we could instead optimize each step (e.g. "do we need to upload a 16Mb picture") (spoiler alert: probably no we don't). Coding that is probably not trivial, but I'm even more concerned about the UX. I think we'll have to code it anyway, but is that a top priority? Is it tolerable for end-users without that feature? If we want to start, the first thing would be to create a nice
More or less, that would mean to create something like an public abstract class AsyncTask<Params, Progress, Result> {
public final AsyncTask.Status getStatus();
protected abstract Result doInBackground(Params... var1);
protected void onPreExecute();
protected void onPostExecute(Result result);
protected void onProgressUpdate(Progress... values);
protected void onCancelled(Result result);
protected void onCancelled();
public final boolean isCancelled();
public final boolean cancel(boolean mayInterruptIfRunning);
public final Result get();
public final Result get(long timeout, TimeUnit unit);
protected final void publishProgress(Progress... values);
public static enum Status {
PENDING,
RUNNING,
FINISHED;
}
} |
Fixed, closing. |
What
Screenshot
The text was updated successfully, but these errors were encountered: