本文整理匯總了Java中com.csipsimple.utils.Compatibility.isTabletScreen方法的典型用法代碼示例。如果您正苦於以下問題:Java Compatibility.isTabletScreen方法的具體用法?Java Compatibility.isTabletScreen怎麽用?Java Compatibility.isTabletScreen使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.csipsimple.utils.Compatibility
的用法示例。
在下文中一共展示了Compatibility.isTabletScreen方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: InCallAnswerControls
import com.csipsimple.utils.Compatibility; //導入方法依賴的package包/類
public InCallAnswerControls(Context context, AttributeSet attrs, int style) {
super(context, attrs, style);
lockerWidgetType = LOCKER_GLOWPAD;
setGravity(Gravity.CENTER_VERTICAL);
if(!isInEditMode()) {
int unlockerType = SipConfigManager.getPreferenceIntegerValue(context, SipConfigManager.UNLOCKER_TYPE, 0);
if(unlockerType <= 0 || unlockerType > 3) {
AccessibilityWrapper accessibilityManager = AccessibilityWrapper.getInstance();
accessibilityManager.init(getContext());
if(accessibilityManager.isEnabled()) {
lockerWidgetType = LOCKER_BUTTON;
}
if (Compatibility.isTabletScreen(getContext())
&& !Compatibility.isCompatible(Build.VERSION_CODES.ICE_CREAM_SANDWICH)) {
lockerWidgetType = LOCKER_BUTTON;
}
}else {
lockerWidgetType = unlockerType;
}
if(lockerWidgetType == LOCKER_GLOWPAD && !Compatibility.isCompatible(Build.VERSION_CODES.ICE_CREAM_SANDWICH)) {
lockerWidgetType = LOCKER_SLIDINGTAB;
}
}
}
示例2: shouldUseTimeoutOverlay
import com.csipsimple.utils.Compatibility; //導入方法依賴的package包/類
/**
* Should the application display the overlay after a timeout.
* @return false if we are in table mode or if proximity sensor can be used
*/
private boolean shouldUseTimeoutOverlay() {
if(useTimeoutOverlay == null) {
useTimeoutOverlay = proximitySensor == null &&
proximityWakeLock == null &&
!Compatibility.isTabletScreen(mContext);
}
return useTimeoutOverlay;
}