mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 17:59:33 +02:00
formatting
This commit is contained in:
parent
c13c115e01
commit
6854300a2a
1 changed files with 13 additions and 12 deletions
|
@ -363,14 +363,15 @@ public class FileChooserActivity extends Activity {
|
|||
mHistory = savedInstanceState.getParcelable(_History);
|
||||
else
|
||||
mHistory = new HistoryStore<IFile>(DisplayPrefs._DefHistoryCapacity);
|
||||
mHistory.addListener(new HistoryListener<IFile>() {
|
||||
@Override
|
||||
public void onChanged(History<IFile> history) {
|
||||
int idx = history.indexOf(getLocation());
|
||||
mViewGoBack.setEnabled(idx > 0);
|
||||
mViewGoForward.setEnabled(idx >= 0 && idx < history.size() - 1);
|
||||
}
|
||||
});
|
||||
mHistory.addListener(new HistoryListener<IFile>() {
|
||||
|
||||
@Override
|
||||
public void onChanged(History<IFile> history) {
|
||||
int idx = history.indexOf(getLocation());
|
||||
mViewGoBack.setEnabled(idx > 0);
|
||||
mViewGoForward.setEnabled(idx >= 0 && idx < history.size() - 1);
|
||||
}
|
||||
});
|
||||
|
||||
// full history
|
||||
if (savedInstanceState != null && savedInstanceState.get(_FullHistory) instanceof HistoryStore<?>)
|
||||
|
@ -1362,10 +1363,10 @@ public class FileChooserActivity extends Activity {
|
|||
*/
|
||||
createLocationButtons(path);
|
||||
|
||||
/*
|
||||
* update UI elements
|
||||
*/
|
||||
updateUI(path);
|
||||
/*
|
||||
* update UI elements
|
||||
*/
|
||||
updateUI(path);
|
||||
|
||||
if (listener != null)
|
||||
listener.onFinish(true, path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue