mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-27 06:17:27 +00:00
Removed flickering
Removed method calls, that opened and closed dialogs. Only one dialog is shown now, when checking in and refreshing regatta data.
This commit is contained in:
1 parent
e8f2ee9bae
commit
33a5571168
1 file changed
+2
-8
+2
-8
@@ -55,7 +55,7 @@ public class CheckinManager {
|
||||
return;
|
||||
}
|
||||
|
||||
activity.showProgressDialog(R.string.please_wait, R.string.getting_leaderboard);
|
||||
activity.showProgressDialog(R.string.please_wait, R.string.getting_event);
|
||||
|
||||
try {
|
||||
HttpGetRequest getLeaderboardRequest = new HttpGetRequest(new URL(urlData.getLeaderboardUrl), activity);
|
||||
@@ -110,7 +110,6 @@ public class CheckinManager {
|
||||
public void performAction(JSONObject response) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
activity.dismissProgressDialog();
|
||||
|
||||
final String leaderboardName;
|
||||
|
||||
@@ -124,8 +123,6 @@ public class CheckinManager {
|
||||
return;
|
||||
}
|
||||
|
||||
activity.showProgressDialog(R.string.please_wait, R.string.getting_event);
|
||||
|
||||
HttpGetRequest getEventRequest;
|
||||
try {
|
||||
getEventRequest = new HttpGetRequest(new URL(urlData.getEventUrl), activity);
|
||||
@@ -154,7 +151,6 @@ public class CheckinManager {
|
||||
|
||||
@Override
|
||||
public void performAction(JSONObject response) {
|
||||
activity.dismissProgressDialog();
|
||||
|
||||
try {
|
||||
urlData.eventId = response.getString("id");
|
||||
@@ -177,9 +173,6 @@ public class CheckinManager {
|
||||
return;
|
||||
}
|
||||
|
||||
activity.showProgressDialog(R.string.please_wait,
|
||||
R.string.getting_competitor);
|
||||
|
||||
HttpGetRequest getCompetitorRequest;
|
||||
try {
|
||||
getCompetitorRequest = new HttpGetRequest(
|
||||
@@ -267,6 +260,7 @@ public class CheckinManager {
|
||||
data.uriString = urlData.uriStr;
|
||||
try {
|
||||
data.setCheckinDigestFromString(urlData.uriStr);
|
||||
activity.dismissProgressDialog();
|
||||
setCheckinData(data);
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
ExLog.e(activity,
|
||||
|
||||
Reference in new issue
Block a user