Browse Source

Make sure loader start

main
M66B 6 years ago
parent
commit
606bef05d7
5 changed files with 24 additions and 0 deletions
  1. +8
    -0
      app/src/main/java/eu/faircode/email/FragmentAccount.java
  2. +4
    -0
      app/src/main/java/eu/faircode/email/FragmentFolder.java
  3. +4
    -0
      app/src/main/java/eu/faircode/email/FragmentIdentity.java
  4. +4
    -0
      app/src/main/java/eu/faircode/email/FragmentMessage.java
  5. +4
    -0
      app/src/main/java/eu/faircode/email/SimpleLoader.java

+ 8
- 0
app/src/main/java/eu/faircode/email/FragmentAccount.java View File

@ -319,6 +319,10 @@ public class FragmentAccount extends FragmentEx {
this.args = args;
}
protected void onStartLoading() {
forceLoad();
}
@Override
public CheckData loadInBackground() {
CheckData result = new CheckData();
@ -507,6 +511,10 @@ public class FragmentAccount extends FragmentEx {
this.args = args;
}
protected void onStartLoading() {
forceLoad();
}
@Override
public Throwable loadInBackground() {
try {


+ 4
- 0
app/src/main/java/eu/faircode/email/FragmentFolder.java View File

@ -126,6 +126,10 @@ public class FragmentFolder extends FragmentEx {
this.args = args;
}
protected void onStartLoading() {
forceLoad();
}
@Override
public Throwable loadInBackground() {
try {


+ 4
- 0
app/src/main/java/eu/faircode/email/FragmentIdentity.java View File

@ -313,6 +313,10 @@ public class FragmentIdentity extends FragmentEx {
this.args = args;
}
protected void onStartLoading() {
forceLoad();
}
@Override
public Throwable loadInBackground() {
try {


+ 4
- 0
app/src/main/java/eu/faircode/email/FragmentMessage.java View File

@ -739,6 +739,10 @@ public class FragmentMessage extends FragmentEx {
this.args = args;
}
protected void onStartLoading() {
forceLoad();
}
@Override
public List<EntityFolder> loadInBackground() {
DB db = DB.getInstance(getContext());


+ 4
- 0
app/src/main/java/eu/faircode/email/SimpleLoader.java View File

@ -78,6 +78,10 @@ public abstract class SimpleLoader<T> {
this.loader = x;
}
protected void onStartLoading() {
forceLoad();
}
@Override
public Result loadInBackground() {
Result result = new Result();


Loading…
Cancel
Save