Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / android / source / src / java / org / libreoffice / SettingsActivity.java
blobc453798a108a3e5c1108ca078a5b6a134c359efc
1 /* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9 package org.libreoffice;
11 import android.app.Activity;
12 import android.os.Bundle;
13 import android.preference.PreferenceFragment;
15 import org.libreoffice.R;
17 public class SettingsActivity extends Activity {
18 @Override
19 protected void onCreate(Bundle savedInstanceState) {
20 super.onCreate(savedInstanceState);
22 // Display the fragment as the main content.
23 getFragmentManager().beginTransaction()
24 .replace(android.R.id.content, new SettingsFragment())
25 .commit();
28 public static class SettingsFragment extends PreferenceFragment {
29 @Override
30 public void onCreate(Bundle savedInstanceState) {
31 super.onCreate(savedInstanceState);
33 addPreferencesFromResource(R.xml.libreoffice_preferences);
37 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */