Skip to content
This repository has been archived by the owner on Apr 5, 2019. It is now read-only.

Commit

Permalink
2.2.2 beta
Browse files Browse the repository at this point in the history
Fix issue 215
  • Loading branch information
pmerle71 committed May 19, 2011
1 parent ee22242 commit acc91d0
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 25 deletions.
9 changes: 7 additions & 2 deletions AndroidManifest.xml
Expand Up @@ -25,8 +25,8 @@
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.sipdroid.sipua"
android:versionName="2.2.1 beta"
android:versionCode="84"
android:versionName="2.2.2 beta"
android:versionCode="85"
android:installLocation="auto">
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"/>
<supports-screens
Expand Down Expand Up @@ -85,6 +85,11 @@
<data android:scheme="imto" />
<data android:scheme="sip" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.CALL_PRIVILEGED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="sip" />
</intent-filter>
</activity>
<activity android:name="org.sipdroid.sipua.ui.Activity2" android:label="@string/app_name"
android:excludeFromRecents="true" android:taskAffinity=""/>
Expand Down
2 changes: 1 addition & 1 deletion src/org/sipdroid/media/WavWriter.java
Expand Up @@ -37,7 +37,7 @@ public class WavWriter
int rightSamplesWritten = 0;
// The positions of the first sample data byte.
long sampleDataOffset;
byte[] buf = new byte[5000];
byte[] buf = new byte[10000];

public WavWriter(String filename,int sample_rate)
{
Expand Down
19 changes: 8 additions & 11 deletions src/org/sipdroid/sipua/ui/InCallScreen.java
Expand Up @@ -64,6 +64,7 @@ public class InCallScreen extends CallScreen implements View.OnClickListener, Se
final int MSG_ANSWER_SPEAKER = 2;
final int MSG_BACK = 3;
final int MSG_TICK = 4;
final int MSG_POPUP = 5;

final int SCREEN_OFF_TIMEOUT = 12000;

Expand Down Expand Up @@ -167,11 +168,8 @@ else if ((PreferenceManager.getDefaultSharedPreferences(mContext).getBoolean(org
mHandler.sendEmptyMessageDelayed(MSG_ANSWER_SPEAKER, 10000);
break;
case UserAgent.UA_STATE_INCALL:
if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
mDialerDrawer.close();
mDialerDrawer.setVisibility(View.GONE);
} else
mDialerDrawer.setVisibility(View.VISIBLE);
mDialerDrawer.close();
mDialerDrawer.setVisibility(View.VISIBLE);
if (Receiver.docked <= 0)
screenOff(true);
break;
Expand All @@ -187,6 +185,7 @@ else if ((PreferenceManager.getDefaultSharedPreferences(mContext).getBoolean(org
if (Receiver.ccCall != null) mCallCard.displayMainCallStatus(ccPhone,Receiver.ccCall);
if (mSlidingCardManager != null) mSlidingCardManager.showPopup();
mHandler.sendEmptyMessage(MSG_TICK);
mHandler.sendEmptyMessage(MSG_POPUP);
if (t == null && Receiver.call_state != UserAgent.UA_STATE_IDLE) {
mDigits.setText("");
running = true;
Expand Down Expand Up @@ -266,6 +265,9 @@ else if (RtpStreamSender.m == 2)
} else
mStats.setVisibility(View.GONE);
break;
case MSG_POPUP:
if (mSlidingCardManager != null) mSlidingCardManager.showPopup();
break;
}
}
};
Expand Down Expand Up @@ -404,12 +406,7 @@ public void run() {
Receiver.ccCall.setState(Call.State.ACTIVE);
Receiver.ccCall.base = SystemClock.elapsedRealtime();
mCallCard.displayMainCallStatus(ccPhone,Receiver.ccCall);
if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
mDialerDrawer.close();
mDialerDrawer.setVisibility(View.GONE);
} else {
mDialerDrawer.setVisibility(View.VISIBLE);
}
mDialerDrawer.setVisibility(View.VISIBLE);
if (mSlidingCardManager != null)
mSlidingCardManager.showPopup();
}
Expand Down
2 changes: 1 addition & 1 deletion src/org/sipdroid/sipua/ui/SIP.java
Expand Up @@ -36,7 +36,7 @@ void callPSTN(String uri) {
number = uri.substring(uri.indexOf(":")+1);
if (!number.equals("")) {
Intent intent = new Intent(Intent.ACTION_CALL,
Uri.fromParts("tel", Uri.decode(number)+
Uri.fromParts(Uri.decode(number).contains("@")?"sipdroid":"tel", Uri.decode(number)+
(PreferenceManager.getDefaultSharedPreferences(this).getString(Settings.PREF_PREF, Settings.DEFAULT_PREF).equals(Settings.VAL_PREF_PSTN) ? "+" : ""), null));
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
Caller.noexclude = SystemClock.elapsedRealtime();
Expand Down
13 changes: 3 additions & 10 deletions src/org/sipdroid/sipua/ui/Settings.java
Expand Up @@ -329,16 +329,9 @@ private void setDefaultValues() {

@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Get the content of the directory
profileFiles = getProfileList();

// Create menu items - show only if there are already some profiles
if (profileFiles != null && profileFiles.length > 0) {
menu.add(0, MENU_IMPORT, 0, getString(R.string.settings_profile_menu_import)).setIcon(android.R.drawable.ic_menu_upload);
menu.add(0, MENU_EXPORT, 0, getString(R.string.settings_profile_menu_export)).setIcon(android.R.drawable.ic_menu_save);
menu.add(0, MENU_DELETE, 0, getString(R.string.settings_profile_menu_delete)).setIcon(android.R.drawable.ic_menu_delete);
}

menu.add(0, MENU_IMPORT, 0, getString(R.string.settings_profile_menu_import)).setIcon(android.R.drawable.ic_menu_upload);
menu.add(0, MENU_EXPORT, 0, getString(R.string.settings_profile_menu_export)).setIcon(android.R.drawable.ic_menu_save);
menu.add(0, MENU_DELETE, 0, getString(R.string.settings_profile_menu_delete)).setIcon(android.R.drawable.ic_menu_delete);
return true;
}

Expand Down

0 comments on commit acc91d0

Please sign in to comment.