Set default pref from xml at LinphoneService start.
This commit is contained in:
parent
ce3b123bd1
commit
441f98e00f
1 changed files with 5 additions and 0 deletions
|
@ -39,6 +39,7 @@ import android.media.RingtoneManager;
|
|||
import android.net.Uri;
|
||||
import android.os.Handler;
|
||||
import android.os.IBinder;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.util.Log;
|
||||
|
||||
/***
|
||||
|
@ -97,6 +98,10 @@ public final class LinphoneService extends Service implements LinphoneServiceLis
|
|||
super.onCreate();
|
||||
instance = this;
|
||||
|
||||
// Set default preferences
|
||||
PreferenceManager.setDefaultValues(this, R.xml.preferences, true);
|
||||
|
||||
|
||||
notificationTitle = getString(R.string.app_name);
|
||||
|
||||
// Dump some debugging information to the logs
|
||||
|
|
Loading…
Reference in a new issue