/* * Copyright (c) 2010 Jan Berkel <jan.berkel@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.zegoggles.smssync; import android.app.Application; import com.fsck.k9.mail.K9MailLib; import com.squareup.otto.Bus; import com.zegoggles.smssync.preferences.Preferences; public class App extends Application { public static final boolean DEBUG = BuildConfig.DEBUG; public static final boolean LOCAL_LOGV = DEBUG; public static final String TAG = "SMSBackup+"; public static final String LOG = "sms_backup_plus.log"; public static final Bus bus = new Bus(); @Override public void onCreate() { super.onCreate(); final Preferences preferences = new Preferences(this); K9MailLib.setDebugStatus(new K9MailLib.DebugStatus() { @Override public boolean enabled() { return preferences.isAppLogDebug(); } @Override public boolean debugSensitive() { return false; } }); } }