mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 02:09:35 +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);
|
mHistory = savedInstanceState.getParcelable(_History);
|
||||||
else
|
else
|
||||||
mHistory = new HistoryStore<IFile>(DisplayPrefs._DefHistoryCapacity);
|
mHistory = new HistoryStore<IFile>(DisplayPrefs._DefHistoryCapacity);
|
||||||
mHistory.addListener(new HistoryListener<IFile>() {
|
mHistory.addListener(new HistoryListener<IFile>() {
|
||||||
@Override
|
|
||||||
public void onChanged(History<IFile> history) {
|
@Override
|
||||||
int idx = history.indexOf(getLocation());
|
public void onChanged(History<IFile> history) {
|
||||||
mViewGoBack.setEnabled(idx > 0);
|
int idx = history.indexOf(getLocation());
|
||||||
mViewGoForward.setEnabled(idx >= 0 && idx < history.size() - 1);
|
mViewGoBack.setEnabled(idx > 0);
|
||||||
}
|
mViewGoForward.setEnabled(idx >= 0 && idx < history.size() - 1);
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// full history
|
// full history
|
||||||
if (savedInstanceState != null && savedInstanceState.get(_FullHistory) instanceof HistoryStore<?>)
|
if (savedInstanceState != null && savedInstanceState.get(_FullHistory) instanceof HistoryStore<?>)
|
||||||
|
@ -1362,10 +1363,10 @@ public class FileChooserActivity extends Activity {
|
||||||
*/
|
*/
|
||||||
createLocationButtons(path);
|
createLocationButtons(path);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* update UI elements
|
* update UI elements
|
||||||
*/
|
*/
|
||||||
updateUI(path);
|
updateUI(path);
|
||||||
|
|
||||||
if (listener != null)
|
if (listener != null)
|
||||||
listener.onFinish(true, path);
|
listener.onFinish(true, path);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue