// Path: src/com/koonen/utils/StatisticUtils.java
// public class StatisticUtils {
// 	public static void onStartSession(Context context) {
// 		FlurryAgent.onStartSession(context, ActivityConstants.FLURRY_KEY);
// 	}
// 
// 	public static void onEndSession() {
// 		FlurryAgent.onEndSession();
// 	}
// 
// }


import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.preference.EditTextPreference;
import android.preference.ListPreference;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.Preference.OnPreferenceChangeListener;
import com.koonen.photostream.R;
import com.koonen.utils.StatisticUtils;

					@Override
					public boolean onPreferenceChange(Preference preference,
							Object value) {
						String text = (String) value;
						initRotationSourcesList(text);
						return true;
					}
				});
	}

	private void initRotationSourcesList(String networkName) {
		ListPreference rotationSourcePreference = (ListPreference) findPreference(UserPreferences.ROTATION_SOURCE_KEY);
		if (networkName == null || networkName.trim() == "") {

			rotationSourcePreference
					.setEntries(R.array.photo_source_type_safe_names);
			rotationSourcePreference
					.setEntryValues(R.array.photo_source_type_safe_values);
		} else {
			rotationSourcePreference
					.setEntries(R.array.photo_source_type_names);
			rotationSourcePreference
					.setEntryValues(R.array.photo_source_type_values);
		}
	}

	@Override
	protected void onStart() {
		super.onStart();
// Path: src/com/koonen/utils/StatisticUtils.java
// public class StatisticUtils {
// 	public static void onStartSession(Context context) {
// 		FlurryAgent.onStartSession(context, ActivityConstants.FLURRY_KEY);
// 	}
// 
// 	public static void onEndSession() {
// 		FlurryAgent.onEndSession();
// 	}
// 
// }


// Path: src/com/koonen/photostream/settings/UserSettingsActivity.java
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.preference.EditTextPreference;
import android.preference.ListPreference;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.Preference.OnPreferenceChangeListener;
import com.koonen.photostream.R;
import com.koonen.utils.StatisticUtils;


					@Override
					public boolean onPreferenceChange(Preference preference,
							Object value) {
						String text = (String) value;
						initRotationSourcesList(text);
						return true;
					}
				});
	}

	private void initRotationSourcesList(String networkName) {
		ListPreference rotationSourcePreference = (ListPreference) findPreference(UserPreferences.ROTATION_SOURCE_KEY);
		if (networkName == null || networkName.trim() == "") {

			rotationSourcePreference
					.setEntries(R.array.photo_source_type_safe_names);
			rotationSourcePreference
					.setEntryValues(R.array.photo_source_type_safe_values);
		} else {
			rotationSourcePreference
					.setEntries(R.array.photo_source_type_names);
			rotationSourcePreference
					.setEntryValues(R.array.photo_source_type_values);
		}
	}

	@Override
	protected void onStart() {
		super.onStart();
		StatisticUtils.onStartSession(this);