// Path: src/main/java/com/androzic/util/XmlUtils.java
// public class XmlUtils
// {
// 
//     public static void skipCurrentTag(XmlPullParser parser)
//             throws XmlPullParserException, IOException {
//         int outerDepth = parser.getDepth();
//         int type;
//         while ((type=parser.next()) != XmlPullParser.END_DOCUMENT
//                && (type != XmlPullParser.END_TAG
//                        || parser.getDepth() > outerDepth)) {
//         }
//     }
// 
// }


import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import org.droidparts.widget.MultiSelectListPreference;
import org.mapsforge.map.rendertheme.XmlRenderThemeStyleLayer;
import org.mapsforge.map.rendertheme.XmlRenderThemeStyleMenu;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.ProgressDialog;
import android.app.backup.BackupManager;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.content.res.XmlResourceParser;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.os.Parcel;
import android.os.Parcelable;
import android.preference.EditTextPreference;
import android.preference.ListPreference;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceGroup;
import android.preference.PreferenceScreen;
import android.support.v4.app.Fragment;
import android.support.v4.app.ListFragment;
import android.support.v4.preference.PreferenceFragment;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.util.Xml;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import com.androzic.map.online.TileProvider;
import com.androzic.ui.SeekbarPreference;
import com.androzic.util.XmlUtils;
						{
							header.breadCrumbShortTitleRes = tv.resourceId;
						}
						else
						{
							header.breadCrumbShortTitle = tv.string;
						}
					}
					header.iconRes = sa.getResourceId(R.styleable.PreferenceHeader_icon, 0);
					header.fragment = sa.getString(R.styleable.PreferenceHeader_fragment);
					header.help = sa.getResourceId(R.styleable.PreferenceHeader_help, 0);
					sa.recycle();

					if (curBundle == null)
					{
						curBundle = new Bundle();
					}

					final int innerDepth = parser.getDepth();
					while ((type = parser.next()) != XmlPullParser.END_DOCUMENT && (type != XmlPullParser.END_TAG || parser.getDepth() > innerDepth))
					{
						if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT)
						{
							continue;
						}

						String innerNodeName = parser.getName();
						if (innerNodeName.equals("extra"))
						{
							resources.parseBundleExtra(innerNodeName, attrs, curBundle);
// Path: src/main/java/com/androzic/util/XmlUtils.java
// public class XmlUtils
// {
// 
//     public static void skipCurrentTag(XmlPullParser parser)
//             throws XmlPullParserException, IOException {
//         int outerDepth = parser.getDepth();
//         int type;
//         while ((type=parser.next()) != XmlPullParser.END_DOCUMENT
//                && (type != XmlPullParser.END_TAG
//                        || parser.getDepth() > outerDepth)) {
//         }
//     }
// 
// }


// Path: src/main/java/com/androzic/Preferences.java
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import org.droidparts.widget.MultiSelectListPreference;
import org.mapsforge.map.rendertheme.XmlRenderThemeStyleLayer;
import org.mapsforge.map.rendertheme.XmlRenderThemeStyleMenu;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.ProgressDialog;
import android.app.backup.BackupManager;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.content.res.XmlResourceParser;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.os.Parcel;
import android.os.Parcelable;
import android.preference.EditTextPreference;
import android.preference.ListPreference;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceGroup;
import android.preference.PreferenceScreen;
import android.support.v4.app.Fragment;
import android.support.v4.app.ListFragment;
import android.support.v4.preference.PreferenceFragment;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.util.Xml;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import com.androzic.map.online.TileProvider;
import com.androzic.ui.SeekbarPreference;
import com.androzic.util.XmlUtils;

						{
							header.breadCrumbShortTitleRes = tv.resourceId;
						}
						else
						{
							header.breadCrumbShortTitle = tv.string;
						}
					}
					header.iconRes = sa.getResourceId(R.styleable.PreferenceHeader_icon, 0);
					header.fragment = sa.getString(R.styleable.PreferenceHeader_fragment);
					header.help = sa.getResourceId(R.styleable.PreferenceHeader_help, 0);
					sa.recycle();

					if (curBundle == null)
					{
						curBundle = new Bundle();
					}

					final int innerDepth = parser.getDepth();
					while ((type = parser.next()) != XmlPullParser.END_DOCUMENT && (type != XmlPullParser.END_TAG || parser.getDepth() > innerDepth))
					{
						if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT)
						{
							continue;
						}

						String innerNodeName = parser.getName();
						if (innerNodeName.equals("extra"))
						{
							resources.parseBundleExtra(innerNodeName, attrs, curBundle);
							XmlUtils.skipCurrentTag(parser);