mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 19:42:17 +02:00
cleanup: unused class has been removed
This commit is contained in:
parent
a6121c3288
commit
5eb45f5f48
3 changed files with 10 additions and 51 deletions
|
@ -27,7 +27,6 @@ import android.view.MenuItem;
|
|||
import org.geometerplus.zlibrary.core.application.ZLApplication;
|
||||
import org.geometerplus.zlibrary.core.application.ZLApplicationWindow;
|
||||
|
||||
import org.geometerplus.zlibrary.ui.android.view.ZLAndroidViewWidget;
|
||||
import org.geometerplus.zlibrary.ui.android.view.ZLAndroidWidget;
|
||||
import org.geometerplus.zlibrary.ui.android.library.ZLAndroidLibrary;
|
||||
import org.geometerplus.zlibrary.ui.android.library.ZLAndroidApplication;
|
||||
|
@ -94,14 +93,6 @@ public final class ZLAndroidApplicationWindow extends ZLApplicationWindow {
|
|||
// TODO: implement
|
||||
}
|
||||
|
||||
private ZLAndroidViewWidget myViewWidget;
|
||||
protected ZLAndroidViewWidget getViewWidget() {
|
||||
if (myViewWidget == null) {
|
||||
myViewWidget = new ZLAndroidViewWidget();
|
||||
}
|
||||
return myViewWidget;
|
||||
}
|
||||
|
||||
protected void repaintView() {
|
||||
final ZLAndroidWidget widget =
|
||||
((ZLAndroidLibrary)ZLAndroidLibrary.Instance()).getWidget();
|
||||
|
@ -109,12 +100,18 @@ public final class ZLAndroidApplicationWindow extends ZLApplicationWindow {
|
|||
widget.postInvalidate();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void scrollViewTo(int viewPage, int shift) {
|
||||
getViewWidget().scrollTo(viewPage, shift);
|
||||
final ZLAndroidWidget widget =
|
||||
((ZLAndroidLibrary)ZLAndroidLibrary.Instance()).getWidget();
|
||||
widget.scrollToPage(viewPage, shift);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void startViewAutoScrolling(int viewPage) {
|
||||
getViewWidget().startAutoScrolling(viewPage);
|
||||
final ZLAndroidWidget widget =
|
||||
((ZLAndroidLibrary)ZLAndroidLibrary.Instance()).getWidget();
|
||||
widget.startAutoScrolling(viewPage);
|
||||
}
|
||||
|
||||
public void rotate() {
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2007-2011 Geometer Plus <contact@geometerplus.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
* 02110-1301, USA.
|
||||
*/
|
||||
|
||||
package org.geometerplus.zlibrary.ui.android.view;
|
||||
|
||||
import org.geometerplus.zlibrary.ui.android.library.ZLAndroidLibrary;
|
||||
|
||||
public class ZLAndroidViewWidget {
|
||||
//@Override
|
||||
public void scrollTo(int viewPage, int shift) {
|
||||
final ZLAndroidWidget widget =
|
||||
((ZLAndroidLibrary)ZLAndroidLibrary.Instance()).getWidget();
|
||||
widget.scrollToPage(viewPage, shift);
|
||||
}
|
||||
|
||||
//@Override
|
||||
public void startAutoScrolling(int viewPage) {
|
||||
final ZLAndroidWidget widget =
|
||||
((ZLAndroidLibrary)ZLAndroidLibrary.Instance()).getWidget();
|
||||
widget.startAutoScrolling(viewPage);
|
||||
}
|
||||
}
|
|
@ -219,7 +219,7 @@ public class ZLAndroidWidget extends View implements View.OnLongClickListener {
|
|||
}
|
||||
}
|
||||
|
||||
void scrollToPage(int viewPage, int shift) {
|
||||
public void scrollToPage(int viewPage, int shift) {
|
||||
switch (viewPage) {
|
||||
case ZLView.PAGE_BOTTOM:
|
||||
case ZLView.PAGE_RIGHT:
|
||||
|
@ -240,7 +240,7 @@ public class ZLAndroidWidget extends View implements View.OnLongClickListener {
|
|||
postInvalidate();
|
||||
}
|
||||
|
||||
void startAutoScrolling(int viewPage) {
|
||||
public void startAutoScrolling(int viewPage) {
|
||||
if (myMainBitmap == null) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue