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
e1f9b539
Kaydet (Commit)
e1f9b539
authored
Ock 29, 2015
tarafından
Tomaž Vajngerl
Kaydeden (comit)
Miklos Vajna
Şub 09, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
android: Actually we don't need ViewFactory
Change-Id: I2d1ccafefe9c52d0536601ba7ff219e6547ceb20
üst
aecce900
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
39 deletions
+0
-39
LibreOfficeMainActivity.java
...id3/src/java/org/libreoffice/LibreOfficeMainActivity.java
+0
-2
ViewFactory.java
...ntal/LOAndroid3/src/java/org/libreoffice/ViewFactory.java
+0
-37
No files found.
android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java
Dosyayı görüntüle @
e1f9b539
...
@@ -96,8 +96,6 @@ public class LibreOfficeMainActivity extends LOAbout {
...
@@ -96,8 +96,6 @@ public class LibreOfficeMainActivity extends LOAbout {
mMainHandler
=
new
Handler
();
mMainHandler
=
new
Handler
();
LayoutInflater
.
from
(
this
).
setFactory
(
ViewFactory
.
getInstance
());
if
(
getIntent
().
getData
()
!=
null
)
{
if
(
getIntent
().
getData
()
!=
null
)
{
mInputFile
=
getIntent
().
getData
().
getPath
();
mInputFile
=
getIntent
().
getData
().
getPath
();
}
else
{
}
else
{
...
...
android/experimental/LOAndroid3/src/java/org/libreoffice/ViewFactory.java
deleted
100644 → 0
Dosyayı görüntüle @
aecce900
package
org
.
libreoffice
;
import
android.content.Context
;
import
android.util.AttributeSet
;
import
android.util.Log
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
org.mozilla.gecko.TextSelectionHandle
;
import
org.mozilla.gecko.gfx.LayerView
;
public
class
ViewFactory
implements
LayoutInflater
.
Factory
{
private
static
final
String
LOGTAG
=
ViewFactory
.
class
.
getSimpleName
();
private
static
final
String
LAYER_VIEW_ID
=
"org.mozilla.gecko.gfx.LayerView"
;
private
static
final
String
TEXT_SELECTION_HANDLE_ID
=
"org.mozilla.gecko.TextSelectionHandle"
;
private
static
final
ViewFactory
INSTANCE
=
new
ViewFactory
();
private
ViewFactory
()
{
}
public
static
LayoutInflater
.
Factory
getInstance
()
{
return
INSTANCE
;
}
@Override
public
View
onCreateView
(
String
name
,
Context
context
,
AttributeSet
attrs
)
{
if
(
name
.
equals
(
LAYER_VIEW_ID
))
{
Log
.
i
(
LOGTAG
,
"Creating custom Gecko view: "
+
name
);
return
new
LayerView
(
context
,
attrs
);
}
else
if
(
name
.
equals
(
TEXT_SELECTION_HANDLE_ID
))
{
Log
.
i
(
LOGTAG
,
"Creating custom Gecko view: "
+
name
);
return
new
TextSelectionHandle
(
context
,
attrs
);
}
return
null
;
}
}
\ No newline at end of file
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