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
36bb1a31
Kaydet (Commit)
36bb1a31
authored
Eyl 07, 2012
tarafından
Andrzej J.R. Hunt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix some serviceconnection issues and more bluetooth power managment.
Change-Id: Id2e309ee5b8f6feff845dba28e7474e2246865f5
üst
08de755c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
PairingActivity.java
...te/src/org/libreoffice/impressremote/PairingActivity.java
+4
-0
StartPresentationActivity.java
.../libreoffice/impressremote/StartPresentationActivity.java
+1
-0
BluetoothClient.java
...reoffice/impressremote/communication/BluetoothClient.java
+3
-2
CommunicationService.java
...ice/impressremote/communication/CommunicationService.java
+2
-1
No files found.
android/sdremote/src/org/libreoffice/impressremote/PairingActivity.java
Dosyayı görüntüle @
36bb1a31
...
...
@@ -83,9 +83,13 @@ public class PairingActivity extends SherlockActivity {
@Override
public
void
onReceive
(
Context
aContext
,
Intent
aIntent
)
{
if
(
mCommunicationService
==
null
)
{
return
;
}
if
(
aIntent
.
getAction
().
equals
(
CommunicationService
.
MSG_PAIRING_STARTED
))
{
String
aPin
=
aIntent
.
getStringExtra
(
"PIN"
);
mPinText
.
setText
(
aPin
);
// refreshLists();
}
else
if
(
aIntent
.
getAction
().
equals
(
...
...
android/sdremote/src/org/libreoffice/impressremote/StartPresentationActivity.java
Dosyayı görüntüle @
36bb1a31
...
...
@@ -41,6 +41,7 @@ public class StartPresentationActivity extends SherlockActivity {
@Override
protected
void
onDestroy
()
{
super
.
onDestroy
();
unbindService
(
mConnection
);
LocalBroadcastManager
.
getInstance
(
this
).
unregisterReceiver
(
mListener
);
}
...
...
android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothClient.java
Dosyayı görüntüle @
36bb1a31
...
...
@@ -29,11 +29,12 @@ public class BluetoothClient extends Client {
private
BluetoothAdapter
mAdapter
;
public
BluetoothClient
(
Server
aServer
,
CommunicationService
aCommunicationService
)
{
CommunicationService
aCommunicationService
,
boolean
aBluetoothWasEnabled
)
{
super
(
aServer
,
aCommunicationService
);
try
{
mAdapter
=
BluetoothAdapter
.
getDefaultAdapter
();
mBluetoothWasEnabled
=
mAdapter
.
isEnabled
()
;
mBluetoothWasEnabled
=
aBluetoothWasEnabled
;
if
(!
mBluetoothWasEnabled
)
{
mAdapter
.
enable
();
}
...
...
android/sdremote/src/org/libreoffice/impressremote/communication/CommunicationService.java
Dosyayı görüntüle @
36bb1a31
...
...
@@ -89,7 +89,8 @@ public class CommunicationService extends Service implements Runnable {
mClient
=
new
NetworkClient
(
mServerDesired
,
this
);
break
;
case
BLUETOOTH:
mClient
=
new
BluetoothClient
(
mServerDesired
,
this
);
mClient
=
new
BluetoothClient
(
mServerDesired
,
this
,
mBluetoothPreviouslyEnabled
);
break
;
}
mTransmitter
=
new
Transmitter
(
mClient
);
...
...
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