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
e147c578
Kaydet (Commit)
e147c578
authored
Eki 10, 2014
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
android: Repaint when the orientation changes.
Change-Id: I150b22b7b1179c1adc7995a8547c7644ac25be28
üst
84949ba2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
LOKitThread.java
...ntal/LOAndroid3/src/java/org/libreoffice/LOKitThread.java
+9
-0
LayerView.java
.../LOAndroid3/src/java/org/mozilla/gecko/gfx/LayerView.java
+8
-0
No files found.
android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java
Dosyayı görüntüle @
e147c578
...
...
@@ -26,6 +26,11 @@ public class LOKitThread extends Thread {
}
private
boolean
draw
()
{
if
(
mTileProvider
==
null
||
mApplication
==
null
)
{
// called too early...
return
false
;
}
RectF
rect
=
new
RectF
(
0
,
0
,
mTileProvider
.
getPageWidth
(),
mTileProvider
.
getPageHeight
());
DisplayMetrics
displayMetrics
=
LibreOfficeMainActivity
.
mAppContext
.
getResources
().
getDisplayMetrics
();
mViewportMetrics
=
new
ImmutableViewportMetrics
(
displayMetrics
);
...
...
@@ -114,6 +119,8 @@ public class LOKitThread extends Thread {
draw
();
break
;
case
LOEvent
.
SIZE_CHANGED
:
// re-draw when the size has changed
draw
();
break
;
case
LOEvent
.
CHANGE_PART
:
changePart
(
event
.
getPartIndex
());
...
...
@@ -130,3 +137,5 @@ public class LOKitThread extends Thread {
mEventQueue
.
clear
();
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/LayerView.java
Dosyayı görüntüle @
e147c578
...
...
@@ -341,6 +341,14 @@ public class LayerView extends FrameLayout {
}
}
@Override
protected
void
onLayout
(
boolean
changed
,
int
left
,
int
top
,
int
right
,
int
bottom
)
{
super
.
onLayout
(
changed
,
left
,
top
,
right
,
bottom
);
if
(
changed
)
{
setViewportSize
(
new
IntSize
(
right
-
left
,
bottom
-
top
));
}
}
private
class
SurfaceTextureListener
implements
TextureView
.
SurfaceTextureListener
{
public
void
onSurfaceTextureAvailable
(
SurfaceTexture
surface
,
int
width
,
int
height
)
{
// We don't do this for surfaceCreated above because it is always followed by a surfaceChanged,
...
...
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