本文整理汇总了Java中com.csipsimple.ui.dialpad.DialerFragment.setTextDialing方法的典型用法代码示例。如果您正苦于以下问题:Java DialerFragment.setTextDialing方法的具体用法?Java DialerFragment.setTextDialing怎么用?Java DialerFragment.setTextDialing使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.csipsimple.ui.dialpad.DialerFragment
的用法示例。
在下文中一共展示了DialerFragment.setTextDialing方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onAttachFragment
import com.csipsimple.ui.dialpad.DialerFragment; //导入方法依赖的package包/类
@Override
public void onAttachFragment(Fragment fragment) {
// This method can be called before onCreate(), at which point we cannot
// rely on ViewPager.
// In that case, we will setup the "current position" soon after the
// ViewPager is ready.
final int currentPosition = mViewPager != null ? mViewPager.getCurrentItem() : -1;
Integer tabId = null;
if(mTabsAdapter != null) {
tabId = mTabsAdapter.getIdForPosition(currentPosition);
}
if (fragment instanceof DialerFragment) {
mDialpadFragment = (DialerFragment) fragment;
if (initTabId == tabId && tabId != null && tabId == TAB_ID_DIALER) {
mDialpadFragment.onVisibilityChanged(true);
initTabId = null;
}
if(initDialerWithText != null) {
mDialpadFragment.setTextDialing(true);
mDialpadFragment.setTextFieldValue(initDialerWithText);
initDialerWithText = null;
}
} else if (fragment instanceof CallLogListFragment) {
mCallLogFragment = (CallLogListFragment) fragment;
if (initTabId == tabId && tabId != null && tabId == TAB_ID_CALL_LOG) {
mCallLogFragment.onVisibilityChanged(true);
initTabId = null;
}
} else if (fragment instanceof ConversationsListFragment) {
mMessagesFragment = (ConversationsListFragment) fragment;
if (initTabId == tabId && tabId != null && tabId == TAB_ID_MESSAGES) {
mMessagesFragment.onVisibilityChanged(true);
initTabId = null;
}
} else if (fragment instanceof FavListFragment) {
mPhoneFavoriteFragment = (FavListFragment) fragment;
if (initTabId == tabId && tabId != null && tabId == TAB_ID_FAVORITES) {
mPhoneFavoriteFragment.onVisibilityChanged(true);
initTabId = null;
}
} else if (fragment instanceof WarningFragment) {
mWarningFragment = (WarningFragment) fragment;
synchronized (warningList) {
mWarningFragment.setWarningList(warningList);
mWarningFragment.setOnWarningChangedListener(this);
}
}
}