mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 10:49:24 +02:00
progress indicator for android 1.5 devices
This commit is contained in:
parent
d361ddd869
commit
90411abb79
3 changed files with 10 additions and 0 deletions
|
@ -76,6 +76,9 @@ public class LibraryActivity extends BaseActivity implements MenuItem.OnMenuItem
|
|||
}
|
||||
|
||||
final ListAdapter adapter = new LibraryListAdapter(this);
|
||||
if ("3".equals(new android.os.Build.VERSION().SDK)) {
|
||||
getWindow().setFeatureInt(Window.FEATURE_PROGRESS, Window.PROGRESS_VISIBILITY_ON);
|
||||
}
|
||||
init(getIntent());
|
||||
|
||||
getListView().setTextFilterEnabled(true);
|
||||
|
|
|
@ -84,6 +84,10 @@ public class NetworkBaseActivity extends BaseActivity implements NetworkView.Eve
|
|||
setListAdapter(new NetworkLibraryAdapter(this));
|
||||
init(getIntent());
|
||||
|
||||
if ("3".equals(new android.os.Build.VERSION().SDK)) {
|
||||
getWindow().setFeatureInt(Window.FEATURE_PROGRESS, Window.PROGRESS_VISIBILITY_ON);
|
||||
}
|
||||
|
||||
setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL);
|
||||
|
||||
setForTree((NetworkTree)getCurrentTree(), this);
|
||||
|
|
|
@ -48,6 +48,9 @@ public abstract class BaseActivity extends ListActivity {
|
|||
super.onCreate(icicle);
|
||||
Thread.setDefaultUncaughtExceptionHandler(new org.geometerplus.zlibrary.ui.android.library.UncaughtExceptionHandler(this));
|
||||
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
|
||||
if ("3".equals(new android.os.Build.VERSION().SDK)) {
|
||||
requestWindowFeature(Window.FEATURE_PROGRESS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue