INNER CODE UNIT · Java
isRunning
rom1v/sndcpy · app/src/main/java/com/rom1v/sndcpy/RecordService.java:185
private boolean isRunning() {
return recorderThread != null;
}
@Override
public void onDestroy() {
super.onDestroy();
stopForeground(true);
if (recorderThread != null) {
recorderThread.interrupt();
recorderThread = null;
}
}
private NotificationManager getNotificationManager() {
return (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
}