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
02432d6e
Kaydet (Commit)
02432d6e
authored
Nis 20, 2015
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
viewer: Enable taps to be able to handle hyperlinks.
Change-Id: I0b735d8db3204dc826c2b5fa9a568a5b425353e4
üst
0ffbbe06
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
InvalidationHandler.java
...ndroid3/src/java/org/libreoffice/InvalidationHandler.java
+3
-1
LOKitThread.java
...ntal/LOAndroid3/src/java/org/libreoffice/LOKitThread.java
+7
-6
No files found.
android/experimental/LOAndroid3/src/java/org/libreoffice/InvalidationHandler.java
Dosyayı görüntüle @
02432d6e
...
...
@@ -41,7 +41,9 @@ public class InvalidationHandler implements Document.MessageCallback {
@Override
public
void
messageRetrieved
(
int
messageID
,
String
payload
)
{
if
(!
LOKitShell
.
isEditingEnabled
())
{
return
;
// enable handling of hyperlinks even in the Viewer
if
(
messageID
!=
Document
.
CALLBACK_INVALIDATE_TILES
&&
messageID
!=
Document
.
CALLBACK_HYPERLINK_CLICKED
)
return
;
}
switch
(
messageID
)
{
case
Document
.
CALLBACK_INVALIDATE_TILES
:
...
...
android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java
Dosyayı görüntüle @
02432d6e
...
...
@@ -293,13 +293,14 @@ public class LOKitThread extends Thread {
* Processes touch events.
*/
private
void
touch
(
String
touchType
,
PointF
documentCoordinate
)
{
if
(!
LOKitShell
.
isEditingEnabled
())
{
return
;
}
if
(
mTileProvider
==
null
)
{
return
;
}
if
(
touchType
.
equals
(
"LongPress"
))
{
// to handle hyperlinks, enable single tap even in the Viewer
boolean
editing
=
LOKitShell
.
isEditingEnabled
();
if
(
touchType
.
equals
(
"LongPress"
)
&&
editing
)
{
mInvalidationHandler
.
changeStateTo
(
InvalidationHandler
.
OverlayState
.
TRANSITION
);
mTileProvider
.
mouseButtonDown
(
documentCoordinate
,
1
);
mTileProvider
.
mouseButtonUp
(
documentCoordinate
,
1
);
...
...
@@ -309,9 +310,9 @@ public class LOKitThread extends Thread {
mInvalidationHandler
.
changeStateTo
(
InvalidationHandler
.
OverlayState
.
TRANSITION
);
mTileProvider
.
mouseButtonDown
(
documentCoordinate
,
1
);
mTileProvider
.
mouseButtonUp
(
documentCoordinate
,
1
);
}
else
if
(
touchType
.
equals
(
"GraphicSelectionStart"
))
{
}
else
if
(
touchType
.
equals
(
"GraphicSelectionStart"
)
&&
editing
)
{
mTileProvider
.
setGraphicSelectionStart
(
documentCoordinate
);
}
else
if
(
touchType
.
equals
(
"GraphicSelectionEnd"
))
{
}
else
if
(
touchType
.
equals
(
"GraphicSelectionEnd"
)
&&
editing
)
{
mTileProvider
.
setGraphicSelectionEnd
(
documentCoordinate
);
}
}
...
...
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