Bug 831627 - 0002. Handle event. r=yoshi
authorChuck Lee <chulee@mozilla.com>
Mon, 28 Jan 2013 10:44:12 +0800
changeset 120310 64b519b7fddf27f132103272090b687569905a04
parent 120309 f7eac60178f6401d20827a73b012f6593da282d0
child 120311 ecede220333ae1b2e114074b09d759f93b1bdf79
push id22148
push useryhuang@mozilla.com
push dateWed, 30 Jan 2013 02:31:52 +0000
treeherdermozilla-inbound@3125ccd01edb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyoshi
bugs831627
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 831627 - 0002. Handle event. r=yoshi
dom/system/gonk/ril_worker.js
--- a/dom/system/gonk/ril_worker.js
+++ b/dom/system/gonk/ril_worker.js
@@ -2603,16 +2603,23 @@ let RIL = {
         command.transactionId = 0;
         break;
       case STK_EVENT_TYPE_IDLE_SCREEN_AVAILABLE:
         command.deviceId = {
           sourceId: STK_DEVICE_ID_DISPLAY,
           destinationId: STK_DEVICE_ID_SIM
         };
         break;
+      case STK_EVENT_TYPE_LANGUAGE_SELECTION:
+        command.deviceId = {
+          sourceId: STK_DEVICE_ID_ME,
+          destinationId: STK_DEVICE_ID_SIM
+        };
+        command.language = command.event.language;
+        break;
     }
     this.sendICCEnvelopeCommand(command);
   },
 
   /**
    * Send REQUEST_STK_SEND_ENVELOPE_COMMAND to ICC.
    *
    * @param tag
@@ -2724,16 +2731,21 @@ let RIL = {
         GsmPDUHelper.writeHexOctet(options.timerId);
     }
 
     // Timer Value
     if (options.timerValue != null) {
         ComprehensionTlvHelper.writeTimerValueTlv(options.timerValue, true);
     }
 
+    // Language
+    if (options.language) {
+      ComprehensionTlvHelper.writeLanguageTlv(options.language);
+    }
+
     // Calculate and write BER length to 2nd mark
     Buf.stopCalOutgoingSize();
 
     // Calculate and write Parcel size to 1st mark
     Buf.stopCalOutgoingSize();
 
     Buf.writeUint32(0);
     Buf.sendParcel();