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
ad34704a
Kaydet (Commit)
ad34704a
authored
Ock 30, 2013
tarafından
Michael Meeks
Kaydeden (comit)
Jan Holesovsky
Şub 06, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sdremote - don't let incoming thumbnails crash us if we switched view.
Signed-off-by:
Jan Holesovsky
<
kendy@suse.cz
>
üst
e577ebc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
PresentationFragment.java
...c/org/libreoffice/impressremote/PresentationFragment.java
+7
-5
ThumbnailFragment.java
.../src/org/libreoffice/impressremote/ThumbnailFragment.java
+3
-2
No files found.
android/sdremote/src/org/libreoffice/impressremote/PresentationFragment.java
Dosyayı görüntüle @
ad34704a
...
...
@@ -148,7 +148,8 @@ public class PresentationFragment extends SherlockFragment {
LocalBroadcastManager
.
getInstance
(
getActivity
().
getApplicationContext
())
.
unregisterReceiver
(
mListener
);
mTopView
=
null
;
mContext
=
null
;
}
private
void
updateSlideNumberDisplay
(
int
aPosition
)
{
...
...
@@ -259,6 +260,9 @@ public class PresentationFragment extends SherlockFragment {
@Override
public
void
onReceive
(
Context
aContext
,
Intent
aIntent
)
{
if
(
mTopView
==
null
||
mTopView
.
getAdapter
()
==
null
)
return
;
if
(
aIntent
.
getAction
().
equals
(
CommunicationService
.
MSG_SLIDE_CHANGED
))
{
int
aSlide
=
aIntent
.
getExtras
().
getInt
(
"slide_number"
);
...
...
@@ -271,10 +275,8 @@ public class PresentationFragment extends SherlockFragment {
mTopView
.
setSelection
(
aSlide
,
true
);
}
else
if
(
aIntent
.
getAction
().
equals
(
CommunicationService
.
MSG_SLIDE_PREVIEW
))
{
// int aNSlide = aIntent.getExtras().getInt("slide_number");
((
ThumbnailAdapter
)
mTopView
.
getAdapter
())
.
notifyDataSetChanged
();
// mTopView.requestLayout();
ThumbnailAdapter
aThumbAdaptor
=
(
ThumbnailAdapter
)
mTopView
.
getAdapter
();
aThumbAdaptor
.
notifyDataSetChanged
();
}
else
if
(
aIntent
.
getAction
().
equals
(
CommunicationService
.
MSG_SLIDE_NOTES
))
{
int
aPosition
=
aIntent
.
getExtras
().
getInt
(
"slide_number"
);
...
...
android/sdremote/src/org/libreoffice/impressremote/ThumbnailFragment.java
Dosyayı görüntüle @
ad34704a
...
...
@@ -155,6 +155,8 @@ public class ThumbnailFragment extends SherlockFragment {
@Override
public
void
onReceive
(
Context
aContext
,
Intent
aIntent
)
{
if
(
mGrid
==
null
)
return
;
if
(
aIntent
.
getAction
().
equals
(
CommunicationService
.
MSG_SLIDE_CHANGED
))
{
int
aSlide
=
aIntent
.
getExtras
().
getInt
(
"slide_number"
);
...
...
@@ -234,4 +236,4 @@ public class ThumbnailFragment extends SherlockFragment {
}
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file
/* 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