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
1816bdd1
Kaydet (Commit)
1816bdd1
authored
Ara 16, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
android: Adpater -> Adapter
Change-Id: If5297d641b4a596f20bdde8203f199d8efcb92fe
üst
2e0c474a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
DocumentPartViewListAdapter.java
...src/java/org/libreoffice/DocumentPartViewListAdapter.java
+3
-3
LOKitTileProvider.java
...OAndroid3/src/java/org/libreoffice/LOKitTileProvider.java
+1
-1
LibreOfficeMainActivity.java
...id3/src/java/org/libreoffice/LibreOfficeMainActivity.java
+7
-7
MockTileProvider.java
...LOAndroid3/src/java/org/libreoffice/MockTileProvider.java
+2
-2
No files found.
android/experimental/LOAndroid3/src/java/org/libreoffice/DocumentPartViewListAd
pa
ter.java
→
android/experimental/LOAndroid3/src/java/org/libreoffice/DocumentPartViewListAd
ap
ter.java
Dosyayı görüntüle @
1816bdd1
...
...
@@ -11,12 +11,12 @@ import android.widget.TextView;
import
java.util.List
;
public
class
DocumentPartViewListAd
pa
ter
extends
ArrayAdapter
<
DocumentPartView
>
{
private
static
final
String
LOGTAG
=
DocumentPartViewListAd
pa
ter
.
class
.
getSimpleName
();
public
class
DocumentPartViewListAd
ap
ter
extends
ArrayAdapter
<
DocumentPartView
>
{
private
static
final
String
LOGTAG
=
DocumentPartViewListAd
ap
ter
.
class
.
getSimpleName
();
private
final
Activity
activity
;
public
DocumentPartViewListAd
pa
ter
(
Activity
activity
,
int
resource
,
List
<
DocumentPartView
>
objects
)
{
public
DocumentPartViewListAd
ap
ter
(
Activity
activity
,
int
resource
,
List
<
DocumentPartView
>
objects
)
{
super
(
activity
,
resource
,
objects
);
this
.
activity
=
activity
;
}
...
...
android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitTileProvider.java
Dosyayı görüntüle @
1816bdd1
...
...
@@ -91,7 +91,7 @@ public class LOKitTileProvider implements TileProvider {
LOKitShell
.
getMainHandler
().
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
LibreOfficeMainActivity
.
mAppContext
.
getDocumentPartViewListAd
pa
ter
().
notifyDataSetChanged
();
LibreOfficeMainActivity
.
mAppContext
.
getDocumentPartViewListAd
ap
ter
().
notifyDataSetChanged
();
}
});
}
...
...
android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java
Dosyayı görüntüle @
1816bdd1
...
...
@@ -40,7 +40,7 @@ public class LibreOfficeMainActivity extends Activity {
private
RelativeLayout
mGeckoLayout
;
private
ListView
mDrawerList
;
private
List
<
DocumentPartView
>
mDocumentPartView
=
new
ArrayList
<
DocumentPartView
>();
private
DocumentPartViewListAd
pater
mDocumentPartViewListAdpa
ter
;
private
DocumentPartViewListAd
apter
mDocumentPartViewListAdap
ter
;
private
String
mInputFile
;
public
static
GeckoLayerClient
getLayerClient
()
{
...
...
@@ -106,11 +106,11 @@ public class LibreOfficeMainActivity extends Activity {
mGeckoLayout
=
(
RelativeLayout
)
findViewById
(
R
.
id
.
gecko_layout
);
mDrawerLayout
=
(
DrawerLayout
)
findViewById
(
R
.
id
.
drawer_layout
);
if
(
mDocumentPartViewListAd
pa
ter
==
null
)
{
if
(
mDocumentPartViewListAd
ap
ter
==
null
)
{
mDrawerList
=
(
ListView
)
findViewById
(
R
.
id
.
left_drawer
);
mDocumentPartViewListAd
pater
=
new
DocumentPartViewListAdpa
ter
(
this
,
R
.
layout
.
document_part_list_layout
,
mDocumentPartView
);
mDrawerList
.
setAdapter
(
mDocumentPartViewListAd
pa
ter
);
mDocumentPartViewListAd
apter
=
new
DocumentPartViewListAdap
ter
(
this
,
R
.
layout
.
document_part_list_layout
,
mDocumentPartView
);
mDrawerList
.
setAdapter
(
mDocumentPartViewListAd
ap
ter
);
mDrawerList
.
setOnItemClickListener
(
new
DocumentPartClickListener
());
}
...
...
@@ -169,8 +169,8 @@ public class LibreOfficeMainActivity extends Activity {
return
mDocumentPartView
;
}
public
DocumentPartViewListAd
pater
getDocumentPartViewListAdpa
ter
()
{
return
mDocumentPartViewListAd
pa
ter
;
public
DocumentPartViewListAd
apter
getDocumentPartViewListAdap
ter
()
{
return
mDocumentPartViewListAd
ap
ter
;
}
private
void
showAbout
()
{
...
...
@@ -237,7 +237,7 @@ public class LibreOfficeMainActivity extends Activity {
private
class
DocumentPartClickListener
implements
android
.
widget
.
AdapterView
.
OnItemClickListener
{
@Override
public
void
onItemClick
(
AdapterView
<?>
parent
,
View
view
,
int
position
,
long
id
)
{
DocumentPartView
partView
=
mDocumentPartViewListAd
pa
ter
.
getItem
(
position
);
DocumentPartView
partView
=
mDocumentPartViewListAd
ap
ter
.
getItem
(
position
);
LOKitShell
.
sendEvent
(
LOEventFactory
.
changePart
(
partView
.
getPartIndex
()));
mDrawerLayout
.
closeDrawer
(
mDrawerList
);
}
...
...
android/experimental/LOAndroid3/src/java/org/libreoffice/MockTileProvider.java
Dosyayı görüntüle @
1816bdd1
...
...
@@ -19,12 +19,12 @@ public class MockTileProvider implements TileProvider {
for
(
int
i
=
0
;
i
<
5
;
i
++)
{
String
partName
=
"Part "
+
i
;
DocumentPartView
partView
=
new
DocumentPartView
(
i
,
partName
,
null
);
LibreOfficeMainActivity
.
mAppContext
.
getDocumentPartViewListAd
pa
ter
().
add
(
partView
);
LibreOfficeMainActivity
.
mAppContext
.
getDocumentPartViewListAd
ap
ter
().
add
(
partView
);
}
LibreOfficeMainActivity
.
mAppContext
.
mMainHandler
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
LibreOfficeMainActivity
.
mAppContext
.
getDocumentPartViewListAd
pa
ter
().
notifyDataSetChanged
();
LibreOfficeMainActivity
.
mAppContext
.
getDocumentPartViewListAd
ap
ter
().
notifyDataSetChanged
();
}
});
}
...
...
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