mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
* #6 DMR decoder feature - work in progress * #6 DMR Decoder. * #6 DMR Decoder. Code review updates. Co-authored-by: Zhenyu Mao <maozhenyu@foxmail.com> Co-authored-by: Denny <denny@denny-desktop>
This commit is contained in:
@@ -62,7 +62,6 @@ public class ApplicationLog
|
||||
public ApplicationLog(UserPreferences userPreferences)
|
||||
{
|
||||
mUserPreferences = userPreferences;
|
||||
MyEventBus.getEventBus().register(this);
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
@@ -87,6 +86,8 @@ public class ApplicationLog
|
||||
*/
|
||||
public void start()
|
||||
{
|
||||
MyEventBus.getGlobalEventBus().register(this);
|
||||
|
||||
if(mRollingFileAppender == null)
|
||||
{
|
||||
mApplicationLogPath = mUserPreferences.getDirectoryPreference().getDirectoryApplicationLog();
|
||||
@@ -169,6 +170,7 @@ public class ApplicationLog
|
||||
*/
|
||||
public void stop()
|
||||
{
|
||||
MyEventBus.getGlobalEventBus().unregister(this);
|
||||
if(mRollingFileAppender != null)
|
||||
{
|
||||
mLog.info("Stopping application logging");
|
||||
|
||||
Reference in New Issue
Block a user