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
ae4f4b71
Kaydet (Commit)
ae4f4b71
authored
Nis 03, 2015
tarafından
Tomaž Vajngerl
Kaydeden (comit)
Miklos Vajna
Nis 07, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
android: remove unneeded layerView stuff
Change-Id: Ide81f4b5dd7f71a3dda21ff51d02a12d7fe9a315
üst
2bbf630d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
18 deletions
+3
-18
SelectionHandle.java
...oid3/src/java/org/libreoffice/canvas/SelectionHandle.java
+1
-1
TextCursorView.java
...oid3/src/java/org/libreoffice/overlay/TextCursorView.java
+2
-17
No files found.
android/experimental/LOAndroid3/src/java/org/libreoffice/canvas/SelectionHandle.java
Dosyayı görüntüle @
ae4f4b71
...
...
@@ -14,8 +14,8 @@ public abstract class SelectionHandle extends BitmapHandle {
private
static
final
long
MINIMUM_HANDLE_UPDATE_TIME
=
50
*
1000000
;
private
final
PointF
mDragStartPoint
=
new
PointF
();
private
long
mLastTime
=
0
;
private
final
PointF
mDragDocumentPosition
=
new
PointF
();
private
long
mLastTime
=
0
;
public
SelectionHandle
(
Bitmap
bitmap
)
{
super
(
bitmap
);
...
...
android/experimental/LOAndroid3/src/java/org/libreoffice/overlay/TextCursorView.java
Dosyayı görüntüle @
ae4f4b71
...
...
@@ -127,15 +127,9 @@ public class TextCursorView extends View implements View.OnTouchListener {
* @param selectionRects - list of text selection rectangles
*/
public
void
changeSelections
(
List
<
RectF
>
selectionRects
)
{
LayerView
layerView
=
LOKitShell
.
getLayerView
();
if
(
layerView
==
null
)
{
Log
.
e
(
LOGTAG
,
"Can't position selections because layerView is null"
);
return
;
}
mSelections
=
selectionRects
;
ImmutableViewportMetrics
metrics
=
l
ayerView
.
getViewportMetrics
();
ImmutableViewportMetrics
metrics
=
mL
ayerView
.
getViewportMetrics
();
repositionWithViewport
(
metrics
.
viewportRectLeft
,
metrics
.
viewportRectTop
,
metrics
.
zoomFactor
);
}
...
...
@@ -147,15 +141,10 @@ public class TextCursorView extends View implements View.OnTouchListener {
if
(
RectUtils
.
fuzzyEquals
(
mGraphicSelection
.
mRectangle
,
rectangle
))
{
return
;
}
LayerView
layerView
=
LOKitShell
.
getLayerView
();
if
(
layerView
==
null
)
{
Log
.
e
(
LOGTAG
,
"Can't position selections because layerView is null"
);
return
;
}
mGraphicSelection
.
mRectangle
=
rectangle
;
ImmutableViewportMetrics
metrics
=
l
ayerView
.
getViewportMetrics
();
ImmutableViewportMetrics
metrics
=
mL
ayerView
.
getViewportMetrics
();
repositionWithViewport
(
metrics
.
viewportRectLeft
,
metrics
.
viewportRectTop
,
metrics
.
zoomFactor
);
}
...
...
@@ -348,10 +337,6 @@ public class TextCursorView extends View implements View.OnTouchListener {
return
false
;
}
public
void
setLayerView
(
LayerView
layerView
)
{
this
.
mLayerView
=
layerView
;
}
public
void
positionHandle
(
SelectionHandle
.
HandleType
type
,
RectF
position
)
{
SelectionHandle
handle
=
getHandleForType
(
type
);
if
(
RectUtils
.
fuzzyEquals
(
handle
.
mDocumentPosition
,
position
))
{
...
...
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