mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-26 09:38:52 -05:00
Use SupportProgressBar methods.
This commit is contained in:
parent
13dc96eca9
commit
24d5d3208a
@ -16,8 +16,9 @@ import android.text.TextWatcher;
|
||||
import android.util.Log;
|
||||
import com.actionbarsherlock.view.Menu;
|
||||
import com.actionbarsherlock.view.MenuItem;
|
||||
import com.actionbarsherlock.view.Window;
|
||||
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
import android.widget.AdapterView;
|
||||
import android.widget.ArrayAdapter;
|
||||
import android.widget.EditText;
|
||||
@ -142,7 +143,7 @@ public class ChooseFolder extends K9ListActivity {
|
||||
public void handleMessage(android.os.Message msg) {
|
||||
switch (msg.what) {
|
||||
case MSG_PROGRESS: {
|
||||
setProgressBarIndeterminateVisibility(msg.arg1 != 0);
|
||||
setSupportProgressBarIndeterminateVisibility(msg.arg1 != 0);
|
||||
break;
|
||||
}
|
||||
case MSG_SET_SELECTED_FOLDER: {
|
||||
|
@ -24,11 +24,12 @@ import android.util.TypedValue;
|
||||
import android.view.LayoutInflater;
|
||||
import com.actionbarsherlock.view.Menu;
|
||||
import com.actionbarsherlock.view.MenuItem;
|
||||
import com.actionbarsherlock.view.Window;
|
||||
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.view.View.OnFocusChangeListener;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.Window;
|
||||
import android.webkit.WebView;
|
||||
import android.webkit.WebViewClient;
|
||||
import android.widget.AutoCompleteTextView.Validator;
|
||||
@ -323,10 +324,10 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
|
||||
public void handleMessage(android.os.Message msg) {
|
||||
switch (msg.what) {
|
||||
case MSG_PROGRESS_ON:
|
||||
setProgressBarIndeterminateVisibility(true);
|
||||
setSupportProgressBarIndeterminateVisibility(true);
|
||||
break;
|
||||
case MSG_PROGRESS_OFF:
|
||||
setProgressBarIndeterminateVisibility(false);
|
||||
setSupportProgressBarIndeterminateVisibility(false);
|
||||
break;
|
||||
case MSG_UPDATE_TITLE:
|
||||
updateTitle();
|
||||
@ -449,6 +450,16 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
|
||||
context.startActivity(i);
|
||||
}
|
||||
|
||||
/*
|
||||
* This is a workaround for an annoying ( temporarly? ) issue:
|
||||
* https://github.com/JakeWharton/ActionBarSherlock/issues/449
|
||||
*/
|
||||
@Override
|
||||
protected void onPostCreate(Bundle savedInstanceState) {
|
||||
super.onPostCreate(savedInstanceState);
|
||||
setSupportProgressBarIndeterminateVisibility(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
@ -259,7 +259,7 @@ public class MessageView extends K9Activity implements OnClickListener {
|
||||
public void progress(final boolean progress) {
|
||||
runOnUiThread(new Runnable() {
|
||||
public void run() {
|
||||
setProgressBarIndeterminateVisibility(progress);
|
||||
setSupportProgressBarIndeterminateVisibility(progress);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -972,7 +972,7 @@ public class MessageView extends K9Activity implements OnClickListener {
|
||||
}
|
||||
mHandler.post(new Runnable() {
|
||||
public void run() {
|
||||
setProgressBarIndeterminateVisibility(false);
|
||||
setSupportProgressBarIndeterminateVisibility(false);
|
||||
if (t instanceof IllegalArgumentException) {
|
||||
mHandler.invalidIdError();
|
||||
} else {
|
||||
@ -994,7 +994,7 @@ public class MessageView extends K9Activity implements OnClickListener {
|
||||
}
|
||||
mHandler.post(new Runnable() {
|
||||
public void run() {
|
||||
setProgressBarIndeterminateVisibility(false);
|
||||
setSupportProgressBarIndeterminateVisibility(false);
|
||||
mMessageView.setShowDownloadButton(message);
|
||||
}
|
||||
});
|
||||
@ -1008,7 +1008,7 @@ public class MessageView extends K9Activity implements OnClickListener {
|
||||
}
|
||||
mHandler.post(new Runnable() {
|
||||
public void run() {
|
||||
setProgressBarIndeterminateVisibility(true);
|
||||
setSupportProgressBarIndeterminateVisibility(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user