| Chunk |
|---|
| Conflicting content |
|---|
super.onRestoreInstanceState(icicle);
}
<<<<<<< HEAD
// If the mToneGenerator creation fails, just continue without it. It is
// a local audio signal, and is not as important as the dtmf tone itself.
synchronized (mToneGeneratorLock) {
if (mToneGenerator == null) {
try {
mToneGenerator = new ToneGenerator(AudioManager.STREAM_RING,
TONE_RELATIVE_VOLUME);
} catch (RuntimeException e) {
Log.w(TAG, "Exception caught while creating local tone generator: " + e);
mToneGenerator = null;
}
}
}
}
@Override
protected void onDestroy() {
super.onDestroy();
synchronized(mToneGeneratorLock) {
if (mToneGenerator != null) {
mToneStopper.removeMessages(STOP_TONE);
mToneGenerator.release();
mToneGenerator = null;
}
}
=======
// TODO: We might eventually need to make mVibrateOn come from a
// user preference rather than a per-platform resource, in which
// case we would need to update it in onResume() rather than here.
initVibrationPattern(r);
>>>>>>> 6781a1369906fe7302b6c50b5a9cb572a9653b97
}
@Override |
| Solution content |
|---|
super.onRestoreInstanceState(icicle);
}
// TODO: We might eventually need to make mVibrateOn come from a
// user preference rather than a per-platform resource, in which
// case we would need to update it in onResume() rather than here.
initVibrationPattern(r);
}
@Override |
| File |
|---|
| TwelveKeyDialer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Annotation |
| Comment |
| Method invocation |
| Method signature |
| Synchronized statement |
| Chunk |
|---|
| Conflicting content |
|---|
synchronized(mToneGeneratorLock) {
if (mToneGenerator == null) {
try {
<<<<<<< HEAD
mToneGenerator = new ToneGenerator(AudioManager.STREAM_RING,
TONE_RELATIVE_VOLUME);
=======
// we want the user to be able to control the volume of the dial tones
// outside of a call, so we use the stream type that is also mapped to the
// volume control keys for this activity
mToneGenerator = new ToneGenerator(DIAL_TONE_STREAM_TYPE, TONE_RELATIVE_VOLUME);
setVolumeControlStream(DIAL_TONE_STREAM_TYPE);
>>>>>>> 6781a1369906fe7302b6c50b5a9cb572a9653b97
} catch (RuntimeException e) {
Log.w(TAG, "Exception caught while creating local tone generator: " + e);
mToneGenerator = null; |
| Solution content |
|---|
synchronized(mToneGeneratorLock) {
if (mToneGenerator == null) {
try {
// we want the user to be able to control the volume of the dial tones
// outside of a call, so we use the stream type that is also mapped to the
// volume control keys for this activity
mToneGenerator = new ToneGenerator(DIAL_TONE_STREAM_TYPE, TONE_RELATIVE_VOLUME);
setVolumeControlStream(DIAL_TONE_STREAM_TYPE);
} catch (RuntimeException e) {
Log.w(TAG, "Exception caught while creating local tone generator: " + e);
mToneGenerator = null; |
| File |
|---|
| TwelveKeyDialer.java |
| Developer's decision |
|---|
| Version 2 |
| Kind of conflict |
|---|
| Attribute |
| Comment |
| Method invocation |