diff --git a/res/layout/chat_bubble_incoming.xml b/res/layout/chat_bubble_incoming.xml
index cfd6f3de7..bdc697330 100644
--- a/res/layout/chat_bubble_incoming.xml
+++ b/res/layout/chat_bubble_incoming.xml
@@ -7,7 +7,6 @@
android:gravity="left"
android:orientation="horizontal" >
-
+
+
+
fragmentsHistory;
private Fragment dialerFragment, messageListFragment, friendStatusListenerFragment;
private ChatFragment chatFragment;
- private SavedState dialerSavedState;
+ private Fragment.SavedState dialerSavedState;
private boolean newProxyConfig;
private boolean isAnimationDisabled = false, preferLinphoneContacts = false;
private OrientationEventListener mOrientationHelper;
@@ -198,7 +194,7 @@ public class LinphoneActivity extends FragmentActivity implements OnClickListene
if (findViewById(R.id.fragmentContainer) != null) {
dialerFragment = new DialerFragment();
dialerFragment.setArguments(getIntent().getExtras());
- getSupportFragmentManager().beginTransaction().add(R.id.fragmentContainer, dialerFragment, currentFragment.toString()).commit();
+ getFragmentManager().beginTransaction().add(R.id.fragmentContainer, dialerFragment, currentFragment.toString()).commit();
selectMenu(FragmentsAvailable.DIALER);
}
}
@@ -575,7 +571,7 @@ public class LinphoneActivity extends FragmentActivity implements OnClickListene
if (currentFragment == FragmentsAvailable.DIALER) {
try {
- dialerSavedState = getSupportFragmentManager().saveFragmentInstanceState(dialerFragment);
+ dialerSavedState = getFragmentManager().saveFragmentInstanceState(dialerFragment);
} catch (Exception e) {
}
}
@@ -661,7 +657,7 @@ public class LinphoneActivity extends FragmentActivity implements OnClickListene
}*/
- FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
+ FragmentTransaction transaction = getFragmentManager().beginTransaction();
if (!withoutAnimation && !isAnimationDisabled && currentFragment.shouldAnimate()) {
if (newFragmentType.isRightOf(currentFragment)) {
@@ -687,7 +683,7 @@ public class LinphoneActivity extends FragmentActivity implements OnClickListene
}
transaction.replace(R.id.fragmentContainer, newFragment, newFragmentType.toString());
transaction.commitAllowingStateLoss();
- getSupportFragmentManager().executePendingTransactions();
+ getFragmentManager().executePendingTransactions();
currentFragment = newFragmentType;
}
@@ -706,7 +702,7 @@ public class LinphoneActivity extends FragmentActivity implements OnClickListene
LinearLayout ll = (LinearLayout) findViewById(R.id.fragmentContainer2);
- FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
+ FragmentTransaction transaction = getFragmentManager().beginTransaction();
if (newFragmentType.shouldAddItselfToTheRightOf(currentFragment)) {
ll.setVisibility(View.VISIBLE);
@@ -735,7 +731,7 @@ public class LinphoneActivity extends FragmentActivity implements OnClickListene
transaction.replace(R.id.fragmentContainer, newFragment);
}
transaction.commitAllowingStateLoss();
- getSupportFragmentManager().executePendingTransactions();
+ getFragmentManager().executePendingTransactions();
currentFragment = newFragmentType;
if (newFragmentType == FragmentsAvailable.DIALER
@@ -746,7 +742,7 @@ public class LinphoneActivity extends FragmentActivity implements OnClickListene
|| newFragmentType == FragmentsAvailable.CHATLIST
|| newFragmentType == FragmentsAvailable.HISTORY) {
try {
- getSupportFragmentManager().popBackStackImmediate(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);
+ getFragmentManager().popBackStackImmediate(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);
} catch (java.lang.IllegalStateException e) {
}
@@ -781,7 +777,7 @@ public class LinphoneActivity extends FragmentActivity implements OnClickListene
String callTime = secondsToDisplayableString(log.getCallDuration());
String callDate = String.valueOf(log.getTimestamp());
- Fragment fragment2 = getSupportFragmentManager().findFragmentById(R.id.fragmentContainer2);
+ Fragment fragment2 = getFragmentManager().findFragmentById(R.id.fragmentContainer2);
if (fragment2 != null && fragment2.isVisible() && currentFragment == FragmentsAvailable.HISTORY_DETAIL) {
HistoryDetailFragment historyDetailFragment = (HistoryDetailFragment) fragment2;
historyDetailFragment.changeDisplayedHistory(sipUri, displayName, pictureUri, status, callTime, callDate);
@@ -809,7 +805,7 @@ public class LinphoneActivity extends FragmentActivity implements OnClickListene
}
public void displayContact(Contact contact, boolean chatOnly) {
- Fragment fragment2 = getSupportFragmentManager().findFragmentById(R.id.fragmentContainer2);
+ Fragment fragment2 = getFragmentManager().findFragmentById(R.id.fragmentContainer2);
if (fragment2 != null && fragment2.isVisible() && currentFragment == FragmentsAvailable.CONTACT) {
ContactFragment contactFragment = (ContactFragment) fragment2;
contactFragment.changeDisplayedContact(contact);
@@ -881,7 +877,7 @@ public class LinphoneActivity extends FragmentActivity implements OnClickListene
if (isTablet()){
if (currentFragment == FragmentsAvailable.CHATLIST || currentFragment == FragmentsAvailable.CHAT){
- Fragment fragment2 = getSupportFragmentManager().findFragmentById(R.id.fragmentContainer2);
+ Fragment fragment2 = getFragmentManager().findFragmentById(R.id.fragmentContainer2);
if (fragment2 != null && fragment2.isVisible() && currentFragment == FragmentsAvailable.CHAT) {
ChatFragment chatFragment = (ChatFragment) fragment2;
chatFragment.changeDisplayedChat(sipUri, displayName, pictureUri);
diff --git a/src/org/linphone/ui/BubbleChat.java b/src/org/linphone/ui/BubbleChat.java
index c76ae63ab..e19dc9c28 100644
--- a/src/org/linphone/ui/BubbleChat.java
+++ b/src/org/linphone/ui/BubbleChat.java
@@ -84,18 +84,13 @@ public class BubbleChat implements LinphoneChatMessage.LinphoneChatMessageListen
}
nativeMessage = message;
mContext = context;
- layoutParams.setMargins(10, 0, 10, 0);
- view.setBackgroundResource(R.drawable.resizable_chat_bubble_outgoing);
- layoutParams.setMargins(10, 0, 10, 0);
- view.setBackgroundResource(R.drawable.resizable_chat_bubble_incoming);
-
if (message.isOutgoing()) {
view = (LinearLayout) LayoutInflater.from(context).inflate(R.layout.chat_bubble_outgoing, null);
- view.setBackgroundResource(R.drawable.chat_bubble_outgoing);
+ view.setBackgroundResource(R.drawable.resizable_chat_bubble_outgoing);
} else {
view = (LinearLayout) LayoutInflater.from(context).inflate(R.layout.chat_bubble_incoming, null);
- view.setBackgroundResource(R.drawable.chat_bubble_incoming);
+ view.setBackgroundResource(R.drawable.resizable_chat_bubble_incoming);
}
view.setId(message.getStorageId());
@@ -156,7 +151,7 @@ public class BubbleChat implements LinphoneChatMessage.LinphoneChatMessageListen
}
}
- TextView contact = (TextView) layout.findViewById(R.id.contact_header);
+ TextView contact = (TextView) view.findViewById(R.id.contact_header);
contact.setText(timestampToHumanDate(context, message.getTime()) + " - " + LinphoneUtils.getUsernameFromAddress(message.getFrom().asStringUriOnly()));
LinphoneChatMessage.State status = message.getStatus();