dialog to enable notification access

This commit is contained in:
danijoo
2016-01-02 14:40:06 +01:00
parent dec245e12b
commit e91f4c86bc
4 changed files with 50 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ import android.view.MenuItem;
import android.view.View;
import net.headlezz.notificationlogger.createnotification.NotificationCreationFragment;
import net.headlezz.notificationlogger.logger.LoggerUtils;
import net.headlezz.notificationlogger.presenter.LoggerWarningPresenter;
import butterknife.Bind;
@@ -59,6 +60,8 @@ public class MainActivity extends AppCompatActivity implements SharedPreferences
@Override
protected void onResume() {
super.onResume();
if(!LoggerUtils.isLoggerRunning())
LoggerUtils.buildNotificationAccessDialog(this).show();
if(getSupportFragmentManager().getBackStackEntryCount() > 0)
mFAB.setVisibility(View.GONE);
}