Improved popup messages
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 931 B |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 4 KiB |
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 8 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 7 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 3 KiB |
BIN
res/drawable/popup.9.png
Normal file
After Width: | Height: | Size: 87 B |
|
@ -3,20 +3,15 @@
|
|||
android:id="@+id/toastRoot"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/zrtp_popup"
|
||||
android:background="@drawable/popup"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/toastTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/toastMessage"
|
||||
android:textColor="@android:color/black"
|
||||
android:layout_marginTop="5dp"
|
||||
android:textColor="@android:color/white"
|
||||
android:padding="5dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
@ -132,10 +132,16 @@ public class IncomingCallActivity extends Activity implements LinphoneOnCallStat
|
|||
// the above method takes care of Samsung Galaxy S
|
||||
Toast.makeText(this, R.string.couldnt_accept_call, Toast.LENGTH_LONG).show();
|
||||
} else {
|
||||
if (mCall.getCurrentParamsCopy().getVideoEnabled())
|
||||
if (!LinphoneActivity.isInstanciated()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (mCall.getCurrentParamsCopy().getVideoEnabled()) {
|
||||
LinphoneActivity.instance().startVideoActivity(mCall);
|
||||
else
|
||||
}
|
||||
else {
|
||||
LinphoneActivity.instance().startIncallActivity(mCall);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -691,7 +691,7 @@ public class LinphoneActivity extends FragmentActivity implements OnClickListene
|
|||
@Override
|
||||
public void onCallStateChanged(LinphoneCall call, State state, String message) {
|
||||
if (state == State.Error) {
|
||||
displayCustomToast(null, message, Toast.LENGTH_LONG);
|
||||
displayCustomToast(message, Toast.LENGTH_LONG);
|
||||
}
|
||||
|
||||
if (state == State.IncomingReceived) {
|
||||
|
@ -710,20 +710,13 @@ public class LinphoneActivity extends FragmentActivity implements OnClickListene
|
|||
displayMissedCalls(missedCalls);
|
||||
}
|
||||
|
||||
private void displayCustomToast(final String title, final String message, final int duration) {
|
||||
private void displayCustomToast(final String message, final int duration) {
|
||||
mHandler.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
LayoutInflater inflater = getLayoutInflater();
|
||||
View layout = inflater.inflate(R.layout.toast, (ViewGroup) findViewById(R.id.toastRoot));
|
||||
|
||||
TextView toastTitle = (TextView) layout.findViewById(R.id.toastTitle);
|
||||
if (title == null) {
|
||||
toastTitle.setVisibility(View.GONE);
|
||||
} else {
|
||||
toastTitle.setText(title);
|
||||
}
|
||||
|
||||
TextView toastText = (TextView) layout.findViewById(R.id.toastMessage);
|
||||
toastText.setText(message);
|
||||
|
||||
|
|