diff options
Diffstat (limited to 'fmapp2/src/com/caf/fmradio/FMRadio.java')
-rw-r--r-- | fmapp2/src/com/caf/fmradio/FMRadio.java | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/fmapp2/src/com/caf/fmradio/FMRadio.java b/fmapp2/src/com/caf/fmradio/FMRadio.java index 1e80801..12693cf 100644 --- a/fmapp2/src/com/caf/fmradio/FMRadio.java +++ b/fmapp2/src/com/caf/fmradio/FMRadio.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2014, The Linux Foundation. All rights reserved. + * Copyright (c) 2009-2015, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -1775,9 +1775,17 @@ public class FMRadio extends Activity private void startRecording() { if(mService != null) { try { - mService.startRecording(); - } catch (RemoteException e) { - e.printStackTrace(); + mRecording = mService.startRecording(); + }catch (RemoteException e) { + e.printStackTrace(); + } + //Initiate record timer thread here + if(mRecording == true) { + mRecordingMsgTV.setCompoundDrawablesWithIntrinsicBounds + (R.drawable.recorder_stop, 0, 0, 0); + int durationInMins = FmSharedPreferences.getRecordDuration(); + Log.e(LOGTAG, "Fected duration: " + durationInMins); + initiateRecordDurationTimer( durationInMins ); } } } |