remove suppress warnings; change to match_parent

This commit is contained in:
Jimmy Shih
2012-11-06 14:42:06 -08:00
parent 1605af1aa4
commit cd7d8ea559
28 changed files with 100 additions and 109 deletions
@@ -125,13 +125,12 @@ public class ChartFragment extends Fragment implements TrackDataListener {
return view;
}
@SuppressWarnings("deprecation")
@Override
public void onStart() {
super.onStart();
ViewGroup layout = (ViewGroup) getActivity().findViewById(R.id.chart_view_layout);
LayoutParams layoutParams = new LayoutParams(
LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);
layout.addView(chartView, layoutParams);
}
@@ -103,21 +103,21 @@ public class ControlRecordingService extends IntentService implements ServiceCon
* Handles the intent to start or stop a recording.
*
* @param intent to be handled
* @param trackRecordingService the trackRecordingService
* @param service the trackRecordingService
*/
@VisibleForTesting
void onHandleIntent(Intent intent, @SuppressWarnings("hiding") ITrackRecordingService trackRecordingService) {
void onHandleIntent(Intent intent, ITrackRecordingService service) {
String action = intent.getAction();
if (action != null) {
try {
if (action.equals(getString(R.string.track_action_start))) {
trackRecordingService.startNewTrack();
service.startNewTrack();
} else if (action.equals(getString(R.string.track_action_end))) {
trackRecordingService.endCurrentTrack();
service.endCurrentTrack();
} else if (action.equals(getString(R.string.track_action_pause))) {
trackRecordingService.pauseCurrentTrack();
service.pauseCurrentTrack();
} else if (action.equals(getString(R.string.track_action_resume))) {
trackRecordingService.resumeCurrentTrack();
service.resumeCurrentTrack();
}
} catch (RemoteException e) {
Log.d(TAG, "ControlRecordingService onHandleIntent RemoteException", e);