mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
load default preferences on boot.
This commit is contained in:
parent
c6b28e9416
commit
d7fe6c80f8
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* -*- compile-command: "cd ../../../../../; ant reinstall"; -*- */
|
||||
/* -*- compile-command: "cd ../../../../../; ant install"; -*- */
|
||||
/*
|
||||
* Copyright (C) 2007 The Android Open Source Project
|
||||
*
|
||||
|
@ -39,6 +39,7 @@ import android.widget.Button;
|
|||
import android.view.MenuInflater;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.File;
|
||||
import android.preference.PreferenceManager;
|
||||
|
||||
import org.eehouse.android.xw4.jni.*;
|
||||
|
||||
|
@ -52,6 +53,7 @@ public class GamesList extends ListActivity implements View.OnClickListener {
|
|||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
PreferenceManager.setDefaultValues( this, R.xml.xwprefs, false );
|
||||
CommonPrefs.setContext( this );
|
||||
|
||||
setContentView(R.layout.game_list);
|
||||
|
|
Loading…
Add table
Reference in a new issue