| Chunk |
|---|
| Conflicting content |
|---|
super.onRestoreInstanceState(icicle);
}
<<<<<<< HEAD
// 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);
=======
// 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;
}
}
>>>>>>> 7206f024070ecd92ccd7d1903ccbaaa931f14003
}
@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 1 |
| 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_DTMF,
=======
mToneGenerator = new ToneGenerator(AudioManager.STREAM_RING,
>>>>>>> 7206f024070ecd92ccd7d1903ccbaaa931f14003
TONE_RELATIVE_VOLUME);
} catch (RuntimeException e) {
Log.w(TAG, "Exception caught while creating local tone generator: " + e); |
| Solution content |
|---|
synchronized(mToneGeneratorLock) {
if (mToneGenerator == null) {
try {
mToneGenerator = new ToneGenerator(AudioManager.STREAM_DTMF,
TONE_RELATIVE_VOLUME);
} catch (RuntimeException e) {
Log.w(TAG, "Exception caught while creating local tone generator: " + e); |
| File |
|---|
| TwelveKeyDialer.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Attribute |
| Method invocation |