Refactor
This commit is contained in:
parent
e98041c7ba
commit
1d25137edd
|
@ -11,7 +11,20 @@ import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.*;
|
import android.widget.AdapterView;
|
||||||
|
import android.widget.ArrayAdapter;
|
||||||
|
import android.widget.Button;
|
||||||
|
import android.widget.EditText;
|
||||||
|
import android.widget.ProgressBar;
|
||||||
|
import android.widget.Spinner;
|
||||||
|
import android.widget.TextView;
|
||||||
|
import android.widget.ViewFlipper;
|
||||||
|
|
||||||
|
import java.security.SecureRandom;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.concurrent.atomic.AtomicReference;
|
||||||
|
|
||||||
import de.danoeh.antennapod.BuildConfig;
|
import de.danoeh.antennapod.BuildConfig;
|
||||||
import de.danoeh.antennapod.R;
|
import de.danoeh.antennapod.R;
|
||||||
import de.danoeh.antennapod.activity.MainActivity;
|
import de.danoeh.antennapod.activity.MainActivity;
|
||||||
|
@ -22,11 +35,6 @@ import de.danoeh.antennapod.core.preferences.GpodnetPreferences;
|
||||||
import de.danoeh.antennapod.core.preferences.UserPreferences;
|
import de.danoeh.antennapod.core.preferences.UserPreferences;
|
||||||
import de.danoeh.antennapod.core.service.GpodnetSyncService;
|
import de.danoeh.antennapod.core.service.GpodnetSyncService;
|
||||||
|
|
||||||
import java.security.SecureRandom;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.concurrent.atomic.AtomicReference;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Guides the user through the authentication process
|
* Guides the user through the authentication process
|
||||||
* Step 1: Request username and password from user
|
* Step 1: Request username and password from user
|
||||||
|
|
|
@ -171,10 +171,10 @@ public final class DBTasks {
|
||||||
isRefreshing.set(false);
|
isRefreshing.set(false);
|
||||||
|
|
||||||
if (FlattrUtils.hasToken()) {
|
if (FlattrUtils.hasToken()) {
|
||||||
if (BuildConfig.DEBUG) Log.d(TAG, "Flattring all pending things.");
|
Log.d(TAG, "Flattring all pending things.");
|
||||||
new FlattrClickWorker(context).executeAsync(); // flattr pending things
|
new FlattrClickWorker(context).executeAsync(); // flattr pending things
|
||||||
|
|
||||||
if (BuildConfig.DEBUG) Log.d(TAG, "Fetching flattr status.");
|
Log.d(TAG, "Fetching flattr status.");
|
||||||
new FlattrStatusFetcher(context).start();
|
new FlattrStatusFetcher(context).start();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -185,9 +185,7 @@ public final class DBTasks {
|
||||||
}
|
}
|
||||||
}.start();
|
}.start();
|
||||||
} else {
|
} else {
|
||||||
if (BuildConfig.DEBUG)
|
Log.d(TAG, "Ignoring request to refresh all feeds: Refresh lock is locked");
|
||||||
Log.d(TAG,
|
|
||||||
"Ignoring request to refresh all feeds: Refresh lock is locked");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue