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
20ca5ea8
Kaydet (Commit)
20ca5ea8
authored
Eki 01, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
android: null safeguards and cleanup unneeded calls
Change-Id: I0ffcfb0fbaa03e5035bec9dd1ffed21f85972470
üst
52228bbd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
13 deletions
+5
-13
LOKitShell.java
...ental/LOAndroid3/src/java/org/libreoffice/LOKitShell.java
+0
-5
DynamicTileLayer.java
...oid3/src/java/org/mozilla/gecko/gfx/DynamicTileLayer.java
+5
-0
GeckoLayerClient.java
...oid3/src/java/org/mozilla/gecko/gfx/GeckoLayerClient.java
+0
-8
No files found.
android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitShell.java
Dosyayı görüntüle @
20ca5ea8
...
...
@@ -3,7 +3,6 @@ package org.libreoffice;
import
android.os.Handler
;
import
android.util.DisplayMetrics
;
import
android.util.Log
;
public
class
LOKitShell
{
...
...
@@ -20,10 +19,6 @@ public class LOKitShell {
}
}
public
static
void
viewSizeChanged
()
{
Log
.
i
(
LOGTAG
,
"viewSizeChanged"
);
}
// Get a Handler for the main java thread
public
static
Handler
getMainHandler
()
{
return
LibreOfficeMainActivity
.
mAppContext
.
mMainHandler
;
...
...
android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/DynamicTileLayer.java
Dosyayı görüntüle @
20ca5ea8
...
...
@@ -131,6 +131,10 @@ public class DynamicTileLayer extends Layer {
}
public
void
reevaluateTiles
(
ImmutableViewportMetrics
viewportMetrics
)
{
if
(
tileProvider
==
null
)
{
return
;
}
RectF
newCurrentViewPort
=
inflate
(
roundToTileSize
(
viewportMetrics
.
getViewport
(),
tileSize
),
tileSize
);
if
(!
currentViewport
.
equals
(
newCurrentViewPort
))
{
...
...
@@ -193,5 +197,6 @@ public class DynamicTileLayer extends Layer {
public
void
clearAllTiles
()
{
tiles
.
clear
();
currentViewport
=
new
RectF
();
}
}
android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/GeckoLayerClient.java
Dosyayı görüntüle @
20ca5ea8
...
...
@@ -71,7 +71,6 @@ public class GeckoLayerClient implements LayerView.Listener {
private
ImmutableViewportMetrics
mNewGeckoViewport
;
private
Context
mContext
;
private
boolean
mPendingViewportAdjust
;
private
boolean
mViewportSizeChanged
;
public
GeckoLayerClient
(
Context
context
)
{
mContext
=
context
;
...
...
@@ -147,8 +146,6 @@ public class GeckoLayerClient implements LayerView.Listener {
/* Informs Gecko that the screen size has changed. */
private
void
sendResizeEventIfNecessary
(
boolean
force
)
{
Log
.
e
(
LOGTAG
,
"### sendResizeEventIfNecessary "
+
force
);
DisplayMetrics
metrics
=
new
DisplayMetrics
();
LibreOfficeMainActivity
.
mAppContext
.
getWindowManager
().
getDefaultDisplay
().
getMetrics
(
metrics
);
View
view
=
mLayerController
.
getView
();
...
...
@@ -183,7 +180,6 @@ public class GeckoLayerClient implements LayerView.Listener {
public
void
viewportSizeChanged
()
{
sendResizeEventIfNecessary
(
true
);
LOKitShell
.
viewSizeChanged
();
}
void
adjustViewport
(
DisplayPortMetrics
displayPort
)
{
...
...
@@ -204,10 +200,6 @@ public class GeckoLayerClient implements LayerView.Listener {
}
LOKitShell
.
sendEvent
(
LOEventFactory
.
viewport
(
clampedMetrics
));
if
(
mViewportSizeChanged
)
{
mViewportSizeChanged
=
false
;
LOKitShell
.
viewSizeChanged
();
}
}
/** This function is invoked by Gecko via JNI; be careful when modifying signature.
...
...
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