/androidsays/src/com/google/marvin/androidsays/PrefsActivity.java

http://eyes-free.googlecode.com/ · 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. */
  16. package com.google.marvin.androidsays;
  17. import android.os.Bundle;
  18. import android.preference.PreferenceActivity;
  19. import android.view.WindowManager;
  20. /**
  21. * Displays preferences
  22. *
  23. * @author clchen@google.com (Charles L. Chen)
  24. */
  25. public class PrefsActivity extends PreferenceActivity {
  26. @Override
  27. protected void onCreate(Bundle savedInstanceState) {
  28. super.onCreate(savedInstanceState);
  29. // Have the system blur any windows behind this one.
  30. getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
  31. WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
  32. addPreferencesFromResource(R.xml.prefs);
  33. }
  34. }