mvp for logger warning
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package net.headlezz.notificationlogger.presenter;
|
||||
|
||||
public class LoggerWarningPresenter {
|
||||
|
||||
public interface LoggerWarningView {
|
||||
void showLoggerWarning();
|
||||
void hideLoggerWarning();
|
||||
}
|
||||
|
||||
LoggerWarningView mView;
|
||||
|
||||
public LoggerWarningPresenter(LoggerWarningView lwv) {
|
||||
mView = lwv;
|
||||
}
|
||||
|
||||
public void setCurrentLoggerPreference(boolean loggingEnabled) {
|
||||
if(loggingEnabled)
|
||||
mView.hideLoggerWarning();
|
||||
else
|
||||
mView.showLoggerWarning();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user