OSDN Git Service

Fix compile errors due to OPP merge
authorAndre Eisenbach <eisenbach@google.com>
Tue, 23 Jun 2015 19:23:53 +0000 (12:23 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Tue, 23 Jun 2015 19:23:53 +0000 (12:23 -0700)
Change-Id: Ia07d99d58785c7e974b1fb32afaeb157ad337932

src/com/android/bluetooth/opp/BluetoothOppObexClientSession.java
src/com/android/bluetooth/opp/BluetoothOppObexServerSession.java

index f8e0ca8..1a8ac6c 100644 (file)
@@ -337,6 +337,7 @@ public class BluetoothOppObexClientSession implements BluetoothOppObexSession {
         private int sendFile(BluetoothOppSendFileInfo fileInfo) {
             boolean error = false;
             int responseCode = -1;
+            int position = 0;
             int status = BluetoothShare.STATUS_SUCCESS;
             Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId);
             ContentValues updateValues;
@@ -391,7 +392,6 @@ public class BluetoothOppObexClientSession implements BluetoothOppObexSession {
                 }
 
                 if (!error) {
-                    int position = 0;
                     int readLength = 0;
                     boolean okToProceed = false;
                     long timestamp = 0;
index af458d7..ffb00e9 100644 (file)
@@ -116,7 +116,7 @@ public class BluetoothOppObexServerSession extends ServerRequestHandler implemen
      * Called when connection is accepted from remote, to retrieve the first
      * Header then wait for user confirmation
      */
-    public void preStart(Handler handler) {
+    public void preStart() {
         try {
             if (D) Log.d(TAG, "Create ServerSession with transport " + mTransport.toString());
             mSession = new ServerSession(mTransport, this, null);