diff options
author | Jay Shrauner <shrauner@google.com> | 2013-05-29 14:34:15 -0700 |
---|---|---|
committer | Jay Shrauner <shrauner@google.com> | 2013-05-31 17:41:42 +0000 |
commit | f78d3444bd50cf3c4ddccff67b1d04422fa65f6d (patch) | |
tree | 4228a0bada9216d2b0263644a3df37b7a066dbb8 /src/com/android/dialer/DialtactsActivity.java | |
parent | 714189ecc711fc879039a334ec28eceebc2b7ac4 (diff) | |
download | packages_apps_Dialer-f78d3444bd50cf3c4ddccff67b1d04422fa65f6d.tar.gz packages_apps_Dialer-f78d3444bd50cf3c4ddccff67b1d04422fa65f6d.tar.bz2 packages_apps_Dialer-f78d3444bd50cf3c4ddccff67b1d04422fa65f6d.zip |
Use TelephonyManager instead of ITelephony
Switch to using public TelephonyManager calls (needed for unbundling).
Bug: 6948882
Change-Id: I301590efa5c45dfc3d31a16181694941a2bee092
Diffstat (limited to 'src/com/android/dialer/DialtactsActivity.java')
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 22e6ba01d..2a2d11b92 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -331,7 +331,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O } // During the call, we don't remember the tab position. - if (!DialpadFragment.phoneIsInUse()) { + if (mDialpadFragment == null || !mDialpadFragment.phoneIsInUse()) { // Remember this tab index. This function is also called, if the tab is set // automatically in which case the setter (setCurrentTab) has to set this to its old // value afterwards @@ -803,7 +803,8 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O final int savedTabIndex = mLastManuallySelectedFragment; final int tabIndex; - if (DialpadFragment.phoneIsInUse() || isDialIntent(intent)) { + if ((mDialpadFragment != null && mDialpadFragment.phoneIsInUse()) + || isDialIntent(intent)) { tabIndex = TAB_INDEX_DIALER; } else if (recentCallsRequest) { tabIndex = TAB_INDEX_CALL_LOG; @@ -1122,7 +1123,8 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O final Tab tab = actionBar.getSelectedTab(); // User can search during the call, but we don't want to remember the status. - if (tab != null && !DialpadFragment.phoneIsInUse()) { + if (tab != null && (mDialpadFragment == null || + !mDialpadFragment.phoneIsInUse())) { mLastManuallySelectedFragment = tab.getPosition(); } |