diff options
author | Alon Albert <aalbert@google.com> | 2013-09-11 10:23:24 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-09-11 10:23:24 -0700 |
commit | 6d0b1c8e26aae4fe3803c589e5900fb0f7ee7818 (patch) | |
tree | e7577f0fd73417e8f22480a672a3f280ac3b7a85 | |
parent | 1c6f666ada54192b364948f5aac7d6d42e9d6b59 (diff) | |
parent | e288297636efc10164fc1d928f9cab3d7a07557a (diff) |
am e2882976: Merge "Google Specific Settings" into klp-dev
* commit 'e288297636efc10164fc1d928f9cab3d7a07557a':
Google Specific Settings
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 52ee530e6..468003806 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -20,7 +20,6 @@ import android.animation.Animator; import android.animation.Animator.AnimatorListener; import android.animation.AnimatorListenerAdapter; import android.app.Activity; -import android.app.backup.BackupManager; import android.app.Fragment; import android.app.FragmentManager; import android.app.FragmentManager.BackStackEntry; @@ -28,20 +27,15 @@ import android.app.FragmentTransaction; import android.content.ActivityNotFoundException; import android.content.Context; import android.content.Intent; -import android.content.SharedPreferences; -import android.content.res.Resources; import android.net.Uri; import android.os.Bundle; import android.os.RemoteException; import android.os.ServiceManager; import android.provider.CallLog.Calls; -import android.provider.ContactsContract; import android.provider.ContactsContract.Contacts; import android.provider.ContactsContract.Intents; import android.provider.ContactsContract.Intents.UI; -import android.provider.Settings; import android.speech.RecognizerIntent; -import android.support.v4.app.NavUtils; import android.telephony.TelephonyManager; import android.text.Editable; import android.text.TextUtils; @@ -51,24 +45,17 @@ import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.View.OnFocusChangeListener; -import android.view.ViewConfiguration; import android.view.inputmethod.InputMethodManager; import android.widget.AbsListView.OnScrollListener; import android.widget.EditText; -import android.widget.ImageView; import android.widget.PopupMenu; -import android.widget.SearchView; -import android.widget.SearchView.OnCloseListener; -import android.widget.SearchView.OnQueryTextListener; import android.widget.Toast; import com.android.contacts.common.CallUtil; import com.android.contacts.common.activity.TransactionSafeActivity; import com.android.contacts.common.dialog.ClearFrequentsDialog; import com.android.contacts.common.interactions.ImportExportDialogFragment; -import com.android.contacts.common.list.ContactListItemView; import com.android.contacts.common.list.OnPhoneNumberPickerActionListener; -import com.android.contacts.common.list.PhoneNumberPickerFragment; import com.android.dialer.calllog.CallLogActivity; import com.android.dialer.database.DialerDatabaseHelper; import com.android.dialer.dialpad.DialpadFragment; @@ -76,8 +63,8 @@ import com.android.dialer.dialpad.SmartDialNameMatcher; import com.android.dialer.dialpad.SmartDialPrefix; import com.android.dialer.interactions.PhoneNumberInteraction; import com.android.dialer.list.AllContactsActivity; -import com.android.dialer.list.PhoneFavoriteFragment; import com.android.dialer.list.OnListFragmentScrolledListener; +import com.android.dialer.list.PhoneFavoriteFragment; import com.android.dialer.list.RegularSearchFragment; import com.android.dialer.list.SearchFragment; import com.android.dialer.list.SmartDialSearchFragment; @@ -381,8 +368,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O } return true; case R.id.menu_call_settings: - final Intent settingsIntent = DialtactsActivity.getCallSettingsIntent(); - startActivity(settingsIntent); + handleMenuSettings(); return true; case R.id.menu_all_contacts: onShowAllContacts(); @@ -391,6 +377,15 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O return false; } + protected void handleMenuSettings() { + openTelephonySetting(this); + } + + public static void openTelephonySetting(Activity activity) { + final Intent settingsIntent = getCallSettingsIntent(); + activity.startActivity(settingsIntent); + } + @Override public void onClick(View view) { switch (view.getId()) { |