Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FC when no headset connected #4

Open
M66B opened this issue Nov 30, 2012 · 2 comments
Open

FC when no headset connected #4

M66B opened this issue Nov 30, 2012 · 2 comments

Comments

@M66B
Copy link

M66B commented Nov 30, 2012

I fixed it with this patch:

diff --git a/Fmapplication/src/com/ti/fmapp/FmRxApp.java b/Fmapplication/src/com/ti/fmapp/FmRxApp.java
index a6f1347..1a1021e 100644
--- a/Fmapplication/src/com/ti/fmapp/FmRxApp.java
+++ b/Fmapplication/src/com/ti/fmapp/FmRxApp.java
@@ -1680,7 +1680,8 @@ public class FmRxApp extends Activity implements View.OnClickListener,
             unregisterReceiver(mReceiver);
             unregisterReceiver(mNotificationsReceiver);
         }
-        sFmReceiver.close();
+        if (sFmReceiver != null)
+            sFmReceiver.close();
     }

     // Receives all of the FM intents and dispatches to the proper handler
@@ -2111,4 +2112,4 @@ public class FmRxApp extends Activity implements View.OnClickListener,
             }
         }
     }
-}
\ No newline at end of file
+}
@freexperia
Copy link
Owner

Hy

push on gerrit
so that i can review
br
J

On Fri, Nov 30, 2012 at 8:31 PM, Marcel Bokhorst
[email protected]:

I fixed it with this patch:

diff --git a/Fmapplication/src/com/ti/fmapp/FmRxApp.java b/Fmapplication/src/com/ti/fmapp/FmRxApp.java
index a6f1347..1a1021e 100644
--- a/Fmapplication/src/com/ti/fmapp/FmRxApp.java
+++ b/Fmapplication/src/com/ti/fmapp/FmRxApp.java
@@ -1680,7 +1680,8 @@ public class FmRxApp extends Activity implements View.OnClickListener,
unregisterReceiver(mReceiver);
unregisterReceiver(mNotificationsReceiver);
}

  •    sFmReceiver.close();
    
  •    if (sFmReceiver != null)
    
  •        sFmReceiver.close();
    

    }

    // Receives all of the FM intents and dispatches to the proper handler
    @@ -2111,4 +2112,4 @@ public class FmRxApp extends Activity implements View.OnClickListener,
    }
    }
    }
    -}
    \ No newline at end of file
    +}


    Reply to this email directly or view it on GitHubhttps://github.com/FC when no headset connected #4.

@M66B
Copy link
Author

M66B commented Nov 30, 2012

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants