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
3c4e6de5
Kaydet (Commit)
3c4e6de5
authored
Agu 20, 2012
tarafından
Andrzej J.R. Hunt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Further ABS/Android 2 related compatibility fixes.
Change-Id: I1689cb26253581ba595e67df47b3d6220d751dad
üst
2ce7d7bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
14 deletions
+4
-14
SelectorActivity.java
...e/src/org/libreoffice/impressremote/SelectorActivity.java
+3
-5
ServerFinder.java
...libreoffice/impressremote/communication/ServerFinder.java
+1
-9
No files found.
android/sdremote/src/org/libreoffice/impressremote/SelectorActivity.java
Dosyayı görüntüle @
3c4e6de5
...
...
@@ -25,7 +25,6 @@ import android.content.IntentFilter;
import
android.content.ServiceConnection
;
import
android.os.Bundle
;
import
android.os.IBinder
;
import
android.support.v4.content.LocalBroadcastManager
;
import
android.view.View
;
import
android.view.View.OnClickListener
;
import
android.widget.LinearLayout
;
...
...
@@ -49,8 +48,7 @@ public class SelectorActivity extends Activity {
IntentFilter
aFilter
=
new
IntentFilter
(
CommunicationService
.
MSG_SERVERLIST_CHANGED
);
LocalBroadcastManager
.
getInstance
(
this
).
registerReceiver
(
mListener
,
aFilter
);
registerReceiver
(
mListener
,
aFilter
);
mBluetoothContainer
=
findViewById
(
R
.
id
.
selector_container_bluetooth
);
mBluetoothList
=
(
LinearLayout
)
findViewById
(
R
.
id
.
selector_list_bluetooth
);
...
...
@@ -64,7 +62,7 @@ public class SelectorActivity extends Activity {
@Override
protected
void
onDestroy
()
{
super
.
onDestroy
();
LocalBroadcastManager
.
getInstance
(
this
).
unregisterReceiver
(
mListener
);
unregisterReceiver
(
mListener
);
}
@Override
...
...
@@ -168,7 +166,7 @@ public class SelectorActivity extends Activity {
aText
.
setOnClickListener
(
mClickListener
);
aText
.
setText
(
aServer
.
getName
());
aLayout
.
addView
(
aView
);
aMap
.
put
(
aServer
,
a
Text
);
aMap
.
put
(
aServer
,
a
View
);
}
}
...
...
android/sdremote/src/org/libreoffice/impressremote/communication/ServerFinder.java
Dosyayı görüntüle @
3c4e6de5
...
...
@@ -8,8 +8,6 @@ import java.net.InetAddress;
import
java.net.SocketException
;
import
java.util.HashMap
;
import
org.libreoffice.impressremote.communication.Server.Protocol
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.support.v4.content.LocalBroadcastManager
;
...
...
@@ -77,8 +75,7 @@ public class ServerFinder {
Intent
aIntent
=
new
Intent
(
CommunicationService
.
MSG_SERVERLIST_CHANGED
);
LocalBroadcastManager
.
getInstance
(
mContext
).
sendBroadcast
(
aIntent
);
mContext
.
sendBroadcast
(
aIntent
);
}
catch
(
java
.
net
.
SocketTimeoutException
e
)
{
// Ignore -- we want to timeout to enable checking whether we
// should stop listening periodically
...
...
@@ -95,11 +92,6 @@ public class ServerFinder {
mFinishRequested
=
false
;
// TODO: Remove for production
mServerList
.
put
(
"10.0.2.2"
,
new
Server
(
Protocol
.
NETWORK
,
"10.0.2.2"
,
"Android Emulator Localhost"
,
System
.
currentTimeMillis
()));
Intent
aIntent
=
new
Intent
(
CommunicationService
.
MSG_SERVERLIST_CHANGED
);
LocalBroadcastManager
.
getInstance
(
mContext
).
sendBroadcast
(
aIntent
);
...
...
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