Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
33ab92fe
Kaydet (Commit)
33ab92fe
authored
Kas 26, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
android: make this a bit more readable
Change-Id: I765458daa808245ec736a3d184ba64c2dcd3a10b
üst
593e4a11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
DocumentLoader.java
.../src/org/libreoffice/android/examples/DocumentLoader.java
+6
-2
No files found.
android/experimental/DocumentLoader/src/org/libreoffice/android/examples/DocumentLoader.java
Dosyayı görüntüle @
33ab92fe
...
...
@@ -182,7 +182,9 @@ public class DocumentLoader
flipper
.
showNext
();
getPageViewerAt
((
flipper
.
getDisplayedChild
()
+
PAGECACHE_PLUSMINUS
)
%
PAGECACHE_SIZE
).
display
(
getCurrentPageViewer
().
currentPageNumber
+
PAGECACHE_PLUSMINUS
);
// The entry after the next, both child index and next is 0..PAGECACHE_SIZE.
int
next
=
(
flipper
.
getDisplayedChild
()
+
PAGECACHE_PLUSMINUS
)
%
PAGECACHE_SIZE
;
getPageViewerAt
(
next
).
display
(
getCurrentPageViewer
().
currentPageNumber
+
PAGECACHE_PLUSMINUS
);
return
true
;
}
else
if
(
event2
.
getX
()
-
event1
.
getX
()
>
120
)
{
if
(
getCurrentPageViewer
().
currentPageNumber
==
0
)
...
...
@@ -201,7 +203,9 @@ public class DocumentLoader
flipper
.
showPrevious
();
getPageViewerAt
((
flipper
.
getDisplayedChild
()
+
PAGECACHE_SIZE
-
PAGECACHE_PLUSMINUS
)
%
PAGECACHE_SIZE
).
display
(
getCurrentPageViewer
().
currentPageNumber
-
PAGECACHE_PLUSMINUS
);
// The entry before the previous, both child index and previous is 0..PAGECACHE_SIZE.
int
previous
=
(
flipper
.
getDisplayedChild
()
+
PAGECACHE_SIZE
-
PAGECACHE_PLUSMINUS
)
%
PAGECACHE_SIZE
;
getPageViewerAt
(
previous
).
display
(
getCurrentPageViewer
().
currentPageNumber
-
PAGECACHE_PLUSMINUS
);
return
true
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment