summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-05-15 20:08:08 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-05-15 20:08:09 +0000
commit6cb5bfb225d53a00d61aecae9a8e3b0a898e8b0e (patch)
tree6becb8cb3c6579044683173fe6b1f6953e2dd32b /src
parent4c9a8cf050defaf1bb48a8005fd609c21bbfbc21 (diff)
parent2b63359e974a2a67b68ea75d4a44a64e0dadbcfe (diff)
Merge "Delete unused code in CallDetailActivity." into mnc-dev
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/CallDetailActivity.java56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java
index a509c7fa1..401c2ae80 100644
--- a/src/com/android/dialer/CallDetailActivity.java
+++ b/src/com/android/dialer/CallDetailActivity.java
@@ -290,26 +290,6 @@ public class CallDetailActivity extends Activity {
return uris;
}
- @Override
- public boolean onKeyDown(int keyCode, KeyEvent event) {
- switch (keyCode) {
- case KeyEvent.KEYCODE_CALL: {
- // Make sure phone isn't already busy before starting direct call
- TelephonyManager tm = (TelephonyManager)
- getSystemService(Context.TELEPHONY_SERVICE);
- if (tm.getCallState() == TelephonyManager.CALL_STATE_IDLE) {
- DialerUtils.startActivityWithErrorToast(this,
- IntentUtil.getCallIntent(
- Uri.fromParts(PhoneAccount.SCHEME_TEL, mNumber, null)),
- R.string.call_not_available);
- return true;
- }
- }
- }
-
- return super.onKeyDown(keyCode, event);
- }
-
/**
* Update user interface with details of given call.
*
@@ -550,33 +530,6 @@ public class CallDetailActivity extends Activity {
false /* darkTheme */, true /* isCircular */, request);
}
- static final class ViewEntry {
- public final String text;
- public final Intent primaryIntent;
- /** The description for accessibility of the primary action. */
- public final String primaryDescription;
-
- public CharSequence label = null;
- /** Icon for the secondary action. */
- public int secondaryIcon = 0;
- /** Intent for the secondary action. If not null, an icon must be defined. */
- public Intent secondaryIntent = null;
- /** The description for accessibility of the secondary action. */
- public String secondaryDescription = null;
-
- public ViewEntry(String text, Intent intent, String description) {
- this.text = text;
- primaryIntent = intent;
- primaryDescription = description;
- }
-
- public void setSecondaryAction(int icon, Intent intent, String description) {
- secondaryIcon = icon;
- secondaryIntent = intent;
- secondaryDescription = description;
- }
- }
-
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.call_details_options, menu);
@@ -643,13 +596,4 @@ public class CallDetailActivity extends Activity {
private void closeSystemDialogs() {
sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));
}
-
- /** Returns the given text, forced to be left-to-right. */
- private static CharSequence forceLeftToRight(CharSequence text) {
- StringBuilder sb = new StringBuilder();
- sb.append(LEFT_TO_RIGHT_EMBEDDING);
- sb.append(text);
- sb.append(POP_DIRECTIONAL_FORMATTING);
- return sb.toString();
- }
}