// Path: src/main/java/de/fahrgemeinschaft/ContactProvider.java
// public static final class CONTACT {
//     public static final String USER = "user";
//     public static final String EMAIL = "Email";
//     public static final String PLATE = "NumberPlate";
//     public static final String MOBILE = "Mobile";
//     public static final String LANDLINE = "Landline";
// }
// 
// Path: src/main/java/de/fahrgemeinschaft/util/EditTextImageButton.java
// public class EditTextImageButton extends BaseImageButton
//                 implements TextWatcher, OnClickListener {
// 
//     private static final String Q = "q";
//     private static final String EMPTY = "";
//     private static final String INPUT_TYPE = "inputType";
//     private static final String HINT = "hint";
//     public AutoCompletePicker text;
//     private TextListener textListener;
//     protected String key;
// 
//     @Override
//     protected int inflate() {
//         return R.layout.btn_edit_text;
//     }
// 
//     public EditTextImageButton(Context context, AttributeSet attrs) {
//         super(context, attrs);
//         text = (AutoCompletePicker) findViewById(R.id.text);
//         text.setThreshold(1);
//         text.setId(ID--);
//         text.setHint(getContext().getString(attrs.getAttributeResourceValue(
//                 droid, HINT, R.string.app_name)));
//         text.setInputType((attrs.getAttributeIntValue(
//                 droid, INPUT_TYPE, InputType.TYPE_CLASS_TEXT)));
//         text.addTextChangedListener(this);
//         Util.fixStreifenhoernchen(text);
//         text.setSelectAllOnFocus(true);
//         icon.setOnClickListener(this);
//     }
// 
//     @Override
//     public void onClick(View v) {
//         text.requestFocus();
//     }
// 
//     public interface TextListener {
//         public void onTextChange(String key, String text);
//     }
// 
//     public void setTextListener(String key, TextListener listener) {
//         this.textListener = listener;
//         this.key = key;
//     }
// 
//     @Override
//     public void afterTextChanged(Editable s) {
//         if (textListener != null)
//             textListener.onTextChange(key, text.getText().toString());
//     }
// 
//     @Override
//     public void beforeTextChanged(CharSequence s, int start, int cnt, int a) {}
// 
//     @Override
//     public void onTextChanged(CharSequence s, int start, int before, int cnt) {}
// 
// }
// 
// Path: src/main/java/de/fahrgemeinschaft/util/WebActivity.java
// @SuppressLint({ "SetJavaScriptEnabled", "JavascriptInterface" })
// public class WebActivity extends SherlockActivity {
// 
//     private ProgressDialog progress;
//     private WebView webView;
// 
//     @SuppressWarnings("deprecation")
//     @Override
//     public void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         webView = new WebView(this);
//         progress = new ProgressDialog(this);
//         webView.getSettings().setJavaScriptEnabled(true);
//         webView.getSettings().setSaveFormData(false);
//         webView.getSettings().setSavePassword(false);
//         webView.loadUrl(getIntent().getDataString());
//         webView.requestFocus(View.FOCUS_DOWN);
//         setContentView(webView);
//         webView.setWebChromeClient(new WebChromeClient(){
// 
//             @Override
//             public boolean onJsAlert(WebView view, String url, String message,
//                     JsResult result) {
//                 Crouton.makeText(WebActivity.this, message, Style.ALERT).show();
//                 result.cancel();
//                 return true;
//             }
//         });
// 
//         webView.setWebViewClient(new WebViewClient() {
// 
//             @Override
//             public void onPageStarted(WebView v, String url, Bitmap favic) {
//                 if (url.startsWith("http")) {
//                     progress.show();
//                 }
//                 super.onPageStarted(v, url, favic);
//             }
// 
//             @Override
//             public void onPageFinished(WebView view, String url) {
//                 progress.dismiss();
//                 overridePendingTransition(
//                         R.anim.do_nix, R.anim.slide_out_bottom);
//                 super.onPageFinished(view, url);
//             }
//         });
//     }
// }


import org.teleportr.ConnectorService;
import org.teleportr.RidesProvider;
import android.app.Activity;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.widget.Button;
import com.actionbarsherlock.app.SherlockFragment;
import de.fahrgemeinschaft.ContactProvider.CONTACT;
import de.fahrgemeinschaft.util.EditTextImageButton;
import de.fahrgemeinschaft.util.WebActivity;
import de.keyboardsurfer.android.widget.crouton.Crouton;
import de.keyboardsurfer.android.widget.crouton.Style;
/**
 * Fahrgemeinschaft / Ridesharing App
 * Copyright (c) 2013 by it's authors.
 * Some rights reserved. See LICENSE.. 
 *
 */

package de.fahrgemeinschaft;





public class ProfileFragment extends SherlockFragment
        implements OnClickListener, OnSharedPreferenceChangeListener {

    public static final String REMEMBER_PASSWORD = "remember_password";
    public static final String INIT_CONTACTS = "init_contacts";
    public static final String FIRSTNAME = "firstname";
    public static final String LASTNAME = "lastname";
    public static final String PASSWORD = "password";
    public static final String LOGIN = "login";
    public static final String AUTH = "auth";
    public static final String EMPTY = "";
// Path: src/main/java/de/fahrgemeinschaft/ContactProvider.java
// public static final class CONTACT {
//     public static final String USER = "user";
//     public static final String EMAIL = "Email";
//     public static final String PLATE = "NumberPlate";
//     public static final String MOBILE = "Mobile";
//     public static final String LANDLINE = "Landline";
// }
// 
// Path: src/main/java/de/fahrgemeinschaft/util/EditTextImageButton.java
// public class EditTextImageButton extends BaseImageButton
//                 implements TextWatcher, OnClickListener {
// 
//     private static final String Q = "q";
//     private static final String EMPTY = "";
//     private static final String INPUT_TYPE = "inputType";
//     private static final String HINT = "hint";
//     public AutoCompletePicker text;
//     private TextListener textListener;
//     protected String key;
// 
//     @Override
//     protected int inflate() {
//         return R.layout.btn_edit_text;
//     }
// 
//     public EditTextImageButton(Context context, AttributeSet attrs) {
//         super(context, attrs);
//         text = (AutoCompletePicker) findViewById(R.id.text);
//         text.setThreshold(1);
//         text.setId(ID--);
//         text.setHint(getContext().getString(attrs.getAttributeResourceValue(
//                 droid, HINT, R.string.app_name)));
//         text.setInputType((attrs.getAttributeIntValue(
//                 droid, INPUT_TYPE, InputType.TYPE_CLASS_TEXT)));
//         text.addTextChangedListener(this);
//         Util.fixStreifenhoernchen(text);
//         text.setSelectAllOnFocus(true);
//         icon.setOnClickListener(this);
//     }
// 
//     @Override
//     public void onClick(View v) {
//         text.requestFocus();
//     }
// 
//     public interface TextListener {
//         public void onTextChange(String key, String text);
//     }
// 
//     public void setTextListener(String key, TextListener listener) {
//         this.textListener = listener;
//         this.key = key;
//     }
// 
//     @Override
//     public void afterTextChanged(Editable s) {
//         if (textListener != null)
//             textListener.onTextChange(key, text.getText().toString());
//     }
// 
//     @Override
//     public void beforeTextChanged(CharSequence s, int start, int cnt, int a) {}
// 
//     @Override
//     public void onTextChanged(CharSequence s, int start, int before, int cnt) {}
// 
// }
// 
// Path: src/main/java/de/fahrgemeinschaft/util/WebActivity.java
// @SuppressLint({ "SetJavaScriptEnabled", "JavascriptInterface" })
// public class WebActivity extends SherlockActivity {
// 
//     private ProgressDialog progress;
//     private WebView webView;
// 
//     @SuppressWarnings("deprecation")
//     @Override
//     public void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         webView = new WebView(this);
//         progress = new ProgressDialog(this);
//         webView.getSettings().setJavaScriptEnabled(true);
//         webView.getSettings().setSaveFormData(false);
//         webView.getSettings().setSavePassword(false);
//         webView.loadUrl(getIntent().getDataString());
//         webView.requestFocus(View.FOCUS_DOWN);
//         setContentView(webView);
//         webView.setWebChromeClient(new WebChromeClient(){
// 
//             @Override
//             public boolean onJsAlert(WebView view, String url, String message,
//                     JsResult result) {
//                 Crouton.makeText(WebActivity.this, message, Style.ALERT).show();
//                 result.cancel();
//                 return true;
//             }
//         });
// 
//         webView.setWebViewClient(new WebViewClient() {
// 
//             @Override
//             public void onPageStarted(WebView v, String url, Bitmap favic) {
//                 if (url.startsWith("http")) {
//                     progress.show();
//                 }
//                 super.onPageStarted(v, url, favic);
//             }
// 
//             @Override
//             public void onPageFinished(WebView view, String url) {
//                 progress.dismiss();
//                 overridePendingTransition(
//                         R.anim.do_nix, R.anim.slide_out_bottom);
//                 super.onPageFinished(view, url);
//             }
//         });
//     }
// }


// Path: src/main/java/de/fahrgemeinschaft/ProfileFragment.java
import org.teleportr.ConnectorService;
import org.teleportr.RidesProvider;
import android.app.Activity;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.widget.Button;
import com.actionbarsherlock.app.SherlockFragment;
import de.fahrgemeinschaft.ContactProvider.CONTACT;
import de.fahrgemeinschaft.util.EditTextImageButton;
import de.fahrgemeinschaft.util.WebActivity;
import de.keyboardsurfer.android.widget.crouton.Crouton;
import de.keyboardsurfer.android.widget.crouton.Style;

/**
 * Fahrgemeinschaft / Ridesharing App
 * Copyright (c) 2013 by it's authors.
 * Some rights reserved. See LICENSE.. 
 *
 */

package de.fahrgemeinschaft;





public class ProfileFragment extends SherlockFragment
        implements OnClickListener, OnSharedPreferenceChangeListener {

    public static final String REMEMBER_PASSWORD = "remember_password";
    public static final String INIT_CONTACTS = "init_contacts";
    public static final String FIRSTNAME = "firstname";
    public static final String LASTNAME = "lastname";
    public static final String PASSWORD = "password";
    public static final String LOGIN = "login";
    public static final String AUTH = "auth";
    public static final String EMPTY = "";
    private EditTextImageButton username;