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
b8834500
Kaydet (Commit)
b8834500
authored
Eyl 17, 2012
tarafından
Andrzej J.R. Hunt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Changed timerUpdateThread to Runnable for clarity.
Change-Id: I49d66181d3aecddf8a5f6fbccccce01699aaa465
üst
c4a6a8d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
PresentationActivity.java
...c/org/libreoffice/impressremote/PresentationActivity.java
+12
-11
No files found.
android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java
Dosyayı görüntüle @
b8834500
...
...
@@ -37,7 +37,6 @@ import com.actionbarsherlock.app.SherlockFragmentActivity;
public
class
PresentationActivity
extends
SherlockFragmentActivity
{
private
CommunicationService
mCommunicationService
;
private
FrameLayout
mLayout
;
private
FrameLayout
mOuterLayout
;
private
ThumbnailFragment
mThumbnailFragment
;
private
PresentationFragment
mPresentationFragment
;
...
...
@@ -65,7 +64,6 @@ public class PresentationActivity extends SherlockFragmentActivity {
fragmentTransaction
.
commit
();
}
mOuterLayout
=
(
FrameLayout
)
findViewById
(
R
.
id
.
framelayout
);
mLayout
=
(
FrameLayout
)
findViewById
(
R
.
id
.
presentation_interceptor
);
}
@Override
...
...
@@ -207,7 +205,7 @@ public class PresentationActivity extends SherlockFragmentActivity {
private
boolean
mTimerOn
=
false
;
public
void
stop
()
{
timerHandler
.
removeCallbacks
(
timerUpdate
Thread
);
timerHandler
.
removeCallbacks
(
timerUpdate
Runnable
);
}
public
ActionBarManager
()
{
...
...
@@ -228,8 +226,8 @@ public class PresentationActivity extends SherlockFragmentActivity {
getSupportFragmentManager
().
addOnBackStackChangedListener
(
this
);
timerHandler
.
removeCallbacks
(
timerUpdate
Thread
);
timerHandler
.
postDelayed
(
timerUpdate
Thread
,
50
);
timerHandler
.
removeCallbacks
(
timerUpdate
Runnable
);
timerHandler
.
postDelayed
(
timerUpdate
Runnable
,
50
);
}
...
...
@@ -344,15 +342,19 @@ public class PresentationActivity extends SherlockFragmentActivity {
}
private
Thread
timerUpdateThread
=
new
Thread
()
{
private
Runnable
timerUpdateRunnable
=
new
Runnable
()
{
@Override
public
void
run
()
{
CharSequence
aTimeString
;
long
aTime
=
System
.
currentTimeMillis
();
if
(
mTimerOn
&&
mCommunicationService
!=
null
)
aTime
=
mCommunicationService
.
getSlideShow
().
getTimer
().
getTimeMillis
();
aTimeString
=
DateFormat
.
format
(
aTimerFormat
,
aTime
);
long
aTime
=
System
.
currentTimeMillis
();
if
(
mTimerOn
&&
mCommunicationService
!=
null
)
{
aTime
=
mCommunicationService
.
getSlideShow
().
getTimer
()
.
getTimeMillis
();
aTimeString
=
DateFormat
.
format
(
aTimerFormat
,
aTime
);
}
else
{
aTimeString
=
DateFormat
.
format
(
aTimeFormat
,
aTime
);
}
mTimeLabel
.
setText
(
aTimeString
);
timerHandler
.
postDelayed
(
this
,
50
);
}
...
...
@@ -479,7 +481,6 @@ public class PresentationActivity extends SherlockFragmentActivity {
/**
* Intermediate layout that catches all touches, used in order to hide
* the clock menu as appropriate.
* @author andy
*
*/
public
static
class
InterceptorLayout
extends
FrameLayout
{
...
...
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