/androidsays/src/com/google/marvin/androidsays/PrefsActivity.java
Java | 41 lines | 13 code | 7 blank | 21 comment | 0 complexity | 8ff0f2ce50a0a3fdb115be8de86d1c10 MD5 | raw file
1/* 2 * Copyright (C) 2008 Google Inc. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 5 * use this file except in compliance with the License. You may obtain a copy of 6 * the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 * License for the specific language governing permissions and limitations under 14 * the License. 15 */ 16package com.google.marvin.androidsays; 17 18import android.os.Bundle; 19import android.preference.PreferenceActivity; 20import android.view.WindowManager; 21 22/** 23 * Displays preferences 24 * 25 * @author clchen@google.com (Charles L. Chen) 26 */ 27public class PrefsActivity extends PreferenceActivity { 28 29 @Override 30 protected void onCreate(Bundle savedInstanceState) { 31 super.onCreate(savedInstanceState); 32 33 // Have the system blur any windows behind this one. 34 getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND, 35 WindowManager.LayoutParams.FLAG_BLUR_BEHIND); 36 37 addPreferencesFromResource(R.xml.prefs); 38 } 39 40 41}