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
a84eb85c
Kaydet (Commit)
a84eb85c
authored
Haz 22, 2012
tarafından
Iain Billett
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed file opening.
üst
cdea32dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
DocumentLoader.java
.../src/org/libreoffice/android/examples/DocumentLoader.java
+19
-0
LibreOfficeUIActivity.java
...Android/src/org/libreoffice/ui/LibreOfficeUIActivity.java
+3
-1
No files found.
android/experimental/DocumentLoader/src/org/libreoffice/android/examples/DocumentLoader.java
Dosyayı görüntüle @
a84eb85c
...
@@ -102,6 +102,8 @@ public class DocumentLoader
...
@@ -102,6 +102,8 @@ public class DocumentLoader
ViewGroup
.
LayoutParams
matchParent
;
ViewGroup
.
LayoutParams
matchParent
;
ViewFlipper
flipper
;
ViewFlipper
flipper
;
Bundle
extras
;
class
GestureListener
class
GestureListener
extends
GestureDetector
.
SimpleOnGestureListener
extends
GestureDetector
.
SimpleOnGestureListener
...
@@ -510,6 +512,8 @@ public class DocumentLoader
...
@@ -510,6 +512,8 @@ public class DocumentLoader
{
{
super
.
onCreate
(
savedInstanceState
);
super
.
onCreate
(
savedInstanceState
);
extras
=
getIntent
().
getExtras
();
gestureDetector
=
new
GestureDetector
(
this
,
new
GestureListener
());
gestureDetector
=
new
GestureDetector
(
this
,
new
GestureListener
());
try
{
try
{
...
@@ -591,6 +595,21 @@ public class DocumentLoader
...
@@ -591,6 +595,21 @@ public class DocumentLoader
{
{
return
gestureDetector
.
onTouchEvent
(
event
);
return
gestureDetector
.
onTouchEvent
(
event
);
}
}
@Override
public
boolean
onOptionsItemSelected
(
MenuItem
item
)
{
switch
(
item
.
getItemId
())
{
case
android
.
R
.
id
.
home
:
// app icon in action bar clicked; go home
Intent
intent
=
new
Intent
(
this
,
LibreOfficeUIActivity
.
class
);
intent
.
putExtras
(
extras
);
//intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity
(
intent
);
return
true
;
default
:
return
super
.
onOptionsItemSelected
(
item
);
}
}
}
}
// vim:set shiftwidth=4 softtabstop=4 expandtab:
// vim:set shiftwidth=4 softtabstop=4 expandtab:
android/experimental/LibreOffice4Android/src/org/libreoffice/ui/LibreOfficeUIActivity.java
Dosyayı görüntüle @
a84eb85c
...
@@ -167,7 +167,9 @@ public class LibreOfficeUIActivity extends Activity implements OnNavigationListe
...
@@ -167,7 +167,9 @@ public class LibreOfficeUIActivity extends Activity implements OnNavigationListe
i.putExtra( EXPLORER_VIEW_TYPE_KEY , viewMode );
i.putExtra( EXPLORER_VIEW_TYPE_KEY , viewMode );
startActivity( i );
startActivity( i );
*/
*/
startActivity
(
new
Intent
(
this
,
DocumentLoader
.
class
)
);
Intent
i
=
new
Intent
(
this
,
DocumentLoader
.
class
);
i
.
putExtra
(
"input"
,
new
File
(
currentDirectory
,
file
).
getAbsolutePath
()
);
startActivity
(
i
);
}
}
@Override
@Override
...
...
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