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
6e90795d
Kaydet (Commit)
6e90795d
authored
Mar 13, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
android: hide soft keyboard when scrolling
Change-Id: Ia840cd68d7af7a6948ad5766b56a3dc27cb8795b
üst
2384e6ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
ScrollbarLayer.java
...droid3/src/java/org/mozilla/gecko/gfx/ScrollbarLayer.java
+8
-0
No files found.
android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/ScrollbarLayer.java
Dosyayı görüntüle @
6e90795d
...
...
@@ -13,8 +13,10 @@ import android.graphics.PorterDuff;
import
android.graphics.Rect
;
import
android.graphics.RectF
;
import
android.opengl.GLES20
;
import
android.util.Log
;
import
org.libreoffice.kit.DirectBufferAllocator
;
import
org.libreoffice.LibreOfficeMainActivity
;
import
org.mozilla.gecko.util.FloatUtils
;
import
java.nio.ByteBuffer
;
...
...
@@ -24,6 +26,7 @@ import java.nio.FloatBuffer;
* Draws a small rect. This is scaled to become a scrollbar.
*/
public
class
ScrollbarLayer
extends
TileLayer
{
private
static
String
LOGTAG
=
LayerView
.
class
.
getName
();
public
static
final
long
FADE_DELAY
=
500
;
// milliseconds before fade-out starts
private
static
final
float
FADE_AMOUNT
=
0.03f
;
// how much (as a percent) the scrollbar should fade per frame
...
...
@@ -204,6 +207,9 @@ public class ScrollbarLayer extends TileLayer {
beginTransaction
();
// called on compositor thread
mOpacity
=
1.0f
;
endTransaction
();
// Scrollbar is now visible, scrolling will start: hide the soft keyboard.
LibreOfficeMainActivity
.
mAppContext
.
hideSoftKeyboard
();
return
true
;
}
...
...
@@ -445,3 +451,5 @@ public class ScrollbarLayer extends TileLayer {
return
new
RectF
(
barStart
,
bottom
-
BAR_SIZE
,
barEnd
,
bottom
);
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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