|
|
|
@ -78,16 +78,17 @@ public class AlarmAlertActivity extends Activity implements OnClickListener, OnD
|
|
|
|
|
SNIPPET_PREW_MAX_LEN) + getResources().getString(R.string.notelist_string_info)
|
|
|
|
|
: mSnippet;
|
|
|
|
|
} catch (IllegalArgumentException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
return;
|
|
|
|
|
e.printStackTrace();// 打印异常信息
|
|
|
|
|
return;// 结束方法的执行
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mPlayer = new MediaPlayer();
|
|
|
|
|
if (DataUtils.visibleInNoteDatabase(getContentResolver(), mNoteId, Notes.TYPE_NOTE)) {
|
|
|
|
|
showActionDialog();
|
|
|
|
|
playAlarmSound();
|
|
|
|
|
mPlayer = new MediaPlayer(); // 创建一个媒体播放器对象
|
|
|
|
|
if (DataUtils.visibleInNoteDatabase(getContentResolver(), mNoteId, Notes.TYPE_NOTE)) // 如果文本在数据库中可见
|
|
|
|
|
{
|
|
|
|
|
showActionDialog();// 显示操作对话框
|
|
|
|
|
playAlarmSound(); // 播放闹钟声音
|
|
|
|
|
} else {
|
|
|
|
|
finish();
|
|
|
|
|
finish();// 结束当前Activity
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|