mvp for logger warning

This commit is contained in:
danijoo
2016-01-02 14:05:41 +01:00
parent 33d78ee5f1
commit dec245e12b
4 changed files with 94 additions and 7 deletions

View File

@@ -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();
}
}