Fix: Erase button of Uri picker now works.
This commit is contained in:
parent
31a660a6a1
commit
6fe3390dce
3 changed files with 4 additions and 4 deletions
|
@ -120,7 +120,7 @@ public class DialerActivity extends Activity implements LinphoneGuiListener, Lin
|
|||
|
||||
mAddress = (AddressText) findViewById(R.id.SipUri);
|
||||
mDisplayNameView = (TextView) findViewById(R.id.DisplayNameView);
|
||||
((EraseButton) findViewById(R.id.Erase)).setAddressView(mAddress);
|
||||
((EraseButton) findViewById(R.id.Erase)).setAddressWidget(mAddress);
|
||||
|
||||
|
||||
mCall = (CallButton) findViewById(R.id.Call);
|
||||
|
|
|
@ -22,7 +22,6 @@ package org.linphone;
|
|||
import org.linphone.mediastream.Version;
|
||||
import org.linphone.ui.AddressAware;
|
||||
import org.linphone.ui.AddressText;
|
||||
import org.linphone.ui.Numpad;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.TabActivity;
|
||||
|
@ -133,6 +132,7 @@ public class UriPickerActivity extends TabActivity implements ContactPicked {
|
|||
// findViewById(R.id.AddCallCancelButton).setOnClickListener(this);
|
||||
|
||||
((AddressAware)findViewById(R.id.Dialer)).setAddressWidget(mAddress);
|
||||
((AddressAware)findViewById(R.id.Erase)).setAddressWidget(mAddress);
|
||||
super.onCreate(savedInstanceState);
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ import android.view.View.OnClickListener;
|
|||
import android.view.View.OnLongClickListener;
|
||||
import android.widget.Button;
|
||||
|
||||
public class EraseButton extends Button implements OnClickListener, OnLongClickListener{
|
||||
public class EraseButton extends Button implements AddressAware, OnClickListener, OnLongClickListener{
|
||||
|
||||
private AddressText address;
|
||||
|
||||
|
@ -52,7 +52,7 @@ public class EraseButton extends Button implements OnClickListener, OnLongClickL
|
|||
return true;
|
||||
}
|
||||
|
||||
public void setAddressView(AddressText view) {
|
||||
public void setAddressWidget(AddressText view) {
|
||||
address = view;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue