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
661b0329
Kaydet (Commit)
661b0329
authored
Agu 20, 2012
tarafından
Andrzej J.R. Hunt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Prevent deadlock on pairing.
Change-Id: I1c746861e1e5c6625e03f4761ecf2fd641fcf071
üst
516c4f2a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
17 deletions
+11
-17
fragment_blankscreen.xml
android/sdremote/res/layout/fragment_blankscreen.xml
+1
-1
BluetoothFinder.java
...reoffice/impressremote/communication/BluetoothFinder.java
+5
-1
CommunicationService.java
...ice/impressremote/communication/CommunicationService.java
+4
-14
ServerFinder.java
...libreoffice/impressremote/communication/ServerFinder.java
+1
-1
No files found.
android/sdremote/res/layout/fragment_blankscreen.xml
Dosyayı görüntüle @
661b0329
...
...
@@ -3,7 +3,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_margin=
"10dip"
android:gravity=
"
left
"
android:gravity=
"
center_vertical
"
android:orientation=
"vertical"
>
<ImageView
...
...
android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothFinder.java
Dosyayı görüntüle @
661b0329
...
...
@@ -40,7 +40,11 @@ public class BluetoothFinder {
public
void
stopFinding
()
{
mAdapter
.
cancelDiscovery
();
mContext
.
unregisterReceiver
(
mReceiver
);
try
{
mContext
.
unregisterReceiver
(
mReceiver
);
}
catch
(
IllegalArgumentException
e
)
{
// The receiver wasn't registered
}
}
private
HashMap
<
String
,
Server
>
mServerList
=
new
HashMap
<
String
,
Server
>();
...
...
android/sdremote/src/org/libreoffice/impressremote/communication/CommunicationService.java
Dosyayı görüntüle @
661b0329
...
...
@@ -85,23 +85,13 @@ public class CommunicationService extends Service implements Runnable {
}
public
void
startSearching
()
{
synchronized
(
mConnectionVariableMutex
)
{
if
(
mState
==
State
.
CONNECTING
||
mState
==
State
.
CONNECTED
)
{
disconnect
();
}
mNetworkFinder
.
startFinding
();
mBluetoothFinder
.
startFinding
();
mState
=
State
.
SEARCHING
;
}
new
BluetoothFinder
(
this
);
mNetworkFinder
.
startFinding
();
mBluetoothFinder
.
startFinding
();
}
public
void
stopSearching
()
{
synchronized
(
mConnectionVariableMutex
)
{
mNetworkFinder
.
stopFinding
();
mBluetoothFinder
.
stopFinding
();
mState
=
State
.
DISCONNECTED
;
}
mNetworkFinder
.
stopFinding
();
mBluetoothFinder
.
stopFinding
();
}
public
void
connectTo
(
Server
aServer
)
{
...
...
android/sdremote/src/org/libreoffice/impressremote/communication/ServerFinder.java
Dosyayı görüntüle @
661b0329
...
...
@@ -63,7 +63,7 @@ public class ServerFinder {
return
;
}
Server
aServer
=
new
Server
(
Server
.
Protocol
.
NETWORK
,
aPacket
.
getAddress
().
toString
(),
aName
,
.
getAddress
().
getHostAddress
(),
aName
,
System
.
currentTimeMillis
());
mServerList
.
put
(
aServer
.
getAddress
(),
aServer
);
...
...
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