mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 19:42:17 +02:00
a cleanup
This commit is contained in:
parent
1cbc8765b7
commit
5ed7a88648
1 changed files with 4 additions and 4 deletions
|
@ -68,7 +68,7 @@ abstract class LibraryBaseActivity extends ListActivity {
|
||||||
|
|
||||||
private static int CHILD_LIST_REQUEST = 0;
|
private static int CHILD_LIST_REQUEST = 0;
|
||||||
private static int RESULT_DONT_INVALIDATE_VIEWS = 0;
|
private static int RESULT_DONT_INVALIDATE_VIEWS = 0;
|
||||||
private static int RESULT_INVALIDATE_VIEWS = 1;
|
private static int RESULT_DO_INVALIDATE_VIEWS = 1;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle icicle) {
|
public void onCreate(Bundle icicle) {
|
||||||
|
@ -80,9 +80,9 @@ abstract class LibraryBaseActivity extends ListActivity {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onActivityResult(int requestCode, int returnCode, Intent intent) {
|
protected void onActivityResult(int requestCode, int returnCode, Intent intent) {
|
||||||
if (requestCode == CHILD_LIST_REQUEST && returnCode == RESULT_INVALIDATE_VIEWS) {
|
if (requestCode == CHILD_LIST_REQUEST && returnCode == RESULT_DO_INVALIDATE_VIEWS) {
|
||||||
getListView().invalidateViews();
|
getListView().invalidateViews();
|
||||||
setResult(RESULT_INVALIDATE_VIEWS);
|
setResult(RESULT_DO_INVALIDATE_VIEWS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -278,7 +278,7 @@ abstract class LibraryBaseActivity extends ListActivity {
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
Library.removeBook(myBook, myMode);
|
Library.removeBook(myBook, myMode);
|
||||||
getListView().invalidateViews();
|
getListView().invalidateViews();
|
||||||
setResult(RESULT_INVALIDATE_VIEWS);
|
setResult(RESULT_DO_INVALIDATE_VIEWS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue