Android Open Source - AdaptedLayout Adapted Layout Settings






From Project

Back to project page AdaptedLayout.

License

The source code is released under:

GNU General Public License

If you think the Android project AdaptedLayout listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package net.chezlestatto.xposed.mods.adaptedlayout;
//from w ww .j a  va  2 s. co m
import android.app.Activity;
import android.os.Bundle;
import android.preference.PreferenceFragment;

public class AdaptedLayoutSettings extends Activity {

    public static final String PREF_KEY_ENABLE_ALBUM = "pref_enable_album";
    public static final String PREF_KEY_ENABLE_MUSIC = "pref_enable_music";
    public static final String PREF_KEY_ENABLE_VIDEO = "pref_enable_video";
    public static final String PREF_KEY_ENABLE_GB_ED_SUPPORT = "pref_enable_gb_ed_support";
    public static final String PREF_KEY_ENABLE_LOGGING = "pref_enable_logging";
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
    setTitle(R.string.app_name);
    super.onCreate(savedInstanceState);

        // Display the fragment as the main content.
        if (savedInstanceState == null)
      getFragmentManager().beginTransaction().replace(android.R.id.content,
                  new PrefsFragment()).commit();
  }

  public static class PrefsFragment extends PreferenceFragment {

    @SuppressWarnings("deprecation")
    @Override
    public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);

      // this is important because although the handler classes that read these settings
      // are in the same package, they are executed in the context of the hooked package
      getPreferenceManager().setSharedPreferencesMode(MODE_WORLD_READABLE);
      addPreferencesFromResource(R.xml.prefs);
    }

  }

}




Java Source Code List

net.chezlestatto.xposed.mods.adaptedlayout.AdaptedLayoutAlbum.java
net.chezlestatto.xposed.mods.adaptedlayout.AdaptedLayoutMusic.java
net.chezlestatto.xposed.mods.adaptedlayout.AdaptedLayoutSettings.java
net.chezlestatto.xposed.mods.adaptedlayout.AdaptedLayout.java