Commit Graph

23 Commits

Author SHA1 Message Date
Ricardo Cerqueira 3ebea2fb6d ChooseDataSim: Use the extra data from the intent to validate the sub
Instead of waiting for the telephony stack to catch up to the default,
take advantage of the fact that the intent already carries the ID as
an extra.

Also, we were using slotId and phoneId interchangeably, and they're not
the same thing. While it's likely they'll match on a freshly reset
phone, don't assume that. Index everything to subId for consistency.

Ref CYNGNOS-3126

Change-Id: Ibcd767d0124b05d669886190f5d9a98f1a6e5bd7
2016-07-14 04:03:45 -07:00
Ricardo Cerqueira e5c2b92590 Prefer SIM carrier name over network carrier
People generally identify their SIMs by the emitting carrier, not
the network they attach to. In roaming or MVNO scenarios, these
are likely not to be the same, leading to confusion in SIM selection.

Ref CYNGNOS-2496

Change-Id: I0ecd8e7511fd4229d6ce7629b1f97aa83a1a6254
2016-04-18 17:55:06 +01:00
Ricardo Cerqueira 7e1a0aaffa SetupWizard: Don't wait for data connection to present the data toggle
We can proceed to the data enablement screen as soon as the device
confirms the requested slot is active. Waiting for an actual data
connection kinda breaks the point of that screen :)

Addresses CYNGNOS-660 and CRACKLING-503

Change-Id: I975508852b37c0e4b112612ac10aacb71ded97b3
2015-08-20 09:25:15 -07:00
cretin45 4ef509ac48 SetupWizard: Improve wait for data sim change logic
Invalid sims and bad connections causes huge delays when switching. This disallows switching to invalid sims. It also fixes a bug were the next button would get enabled while waiting on a switch.

CRACKLING-503

Change-Id: I6cf7391910cc23554bb418c3083e736a3f06e037
2015-08-19 12:01:08 -07:00
cretin45 62db452188 SetupWizard: Wait for data sim change
When changing the default data sim for msim, disable the next action until the operation completes.
This PS also refactors how the wait for radio logic a bit.

CRACKLING-503

Change-Id: I38ba3ea00f63d3e42c260e5b0e8558c3bc9d347f
2015-08-18 16:43:34 -07:00
Matt Garnes b31cb54361 Fix incorrect retrieval of SIM Network Operator.
We were incorrectly passing the phone ID to TelephonyManager instead of
the subscription ID. Pass the correct identifier to retrieve the network
operator name.

Change-Id: I266d2ce39c72db6e97eff5a36c5fec6242d516cc
2015-06-19 15:43:58 +00:00
emancebo b2ceb1f8bb OOBE: fix NPE in choose data sim page
Change-Id: Ib6228e7cd223d29ac48200e9a50c0900d35f8a4e
2015-05-18 16:25:14 +00:00
cretin45 ac84dc0fce Setupwizard: Fix msim NPE where sim only in slot 2
Change-Id: I919129185cb49c51f9f02d9718e116e7d02b0d2c
2015-05-04 16:03:08 -07:00
Pawit Pornkitprasan cfc4a0db64 SetupWizard: handle skipping id in SubInfoRecords
This extends I3b4132afccc96a5d08986a3cb902bd384931f21f to actually
work.

Change-Id: I9183626b40edda6a96888dca2816ff116b64bc5e
2015-04-20 15:55:30 -07:00
Pawit Pornkitprasan dd500a1f42 SetupWizard: don't access SubscriptionController directly
SubscriptionController exists in the telephony process and cannot
be accessed by SetupWizard.

getInstance() will always return null.

Change-Id: I017682d3aad539e1954348664b1c1fec7f76009d
2015-04-20 15:53:19 -07:00
cretin45 f654deb217 SetupWizard: Give radio a 10 second chance to come up
Change-Id: Iadd817b200106783dd67edbc5ad03928ce2baa6b
2015-04-17 03:44:08 +03:00
cretin45 e79aa7f0bf SetupWizard: Don't assume order of SubInfoRecords
Change-Id: I3b4132afccc96a5d08986a3cb902bd384931f21f
2015-04-09 13:32:59 -07:00
Steve Kondik c225cd58f7 setupwizard: Adapt to MR1 multisim APIs
Change-Id: Icb5bad076fe5a5e8a26befc5bedd04981c374117
2015-03-22 17:18:31 -07:00
cretin45 f66c56b62f SetupWizard: Only update network state when resumed
Change-Id: Id018bf0ed4d9c54a1d6d57d53749c265b1d0e269
2015-03-11 17:14:22 -07:00
cretin45 ef4cd78d5f SetupWizard: Add metrics for internal builds that ship with CMStats
Change-Id: Id932a105c18332e32605530d1502ff99b7cf380a
2015-03-04 13:08:00 -08:00
cretin45 01f21da16b SetupWizard: Add option to apply default theme if one exists
* A bunch of code cleanup/refactoring to make this work

Change-Id: I059fb5fa5bcd7dd8821e993218a320554f10a314
2015-02-25 14:59:06 -08:00
cretin45 d7e70040b7 SetupWizard: Refactor context type
Context is assumed to be SetupWizardActivity and blindly cast. Just make the Context reference a SetupWizardActivity.

Change-Id: I3d7ffd08980fbff0fbea51b45b28002b49813038
2015-02-23 14:33:07 -08:00
cretin45 b7465b564f SetupWizard: Show next instead of skip on choose data sim page
Change-Id: I159eab7ef18bd0ad504cc48434cb702ad77b6e37
2015-01-28 09:52:15 -08:00
cretin45 3ce798f2ba SetupWizard: Turn off signal strength listener prior to detach
Change-Id: I4c4b4a3e82067704b6895b9d46997d6e72b38786
2015-01-27 14:41:35 -08:00
cretin45 59730c2e75 SetupWizard: Improve some of the transitions
Change-Id: I26a9d20cf429ab137d9877970ea0d6e4eafec0ad
2015-01-23 15:26:45 -08:00
cretin45 501a25032d SetupWizard: remove logspam
Change-Id: Icaa4120c404d131604a2c44f77b49e61875c6038
2015-01-23 13:20:32 -08:00
cretin45 61a331f403 SetupWizard: Better handle next and previous actions
Change-Id: I239269d9313594b1d37ce3468e0c095c851946c6
2015-01-23 11:37:23 -08:00
cretin45 0328b87bf6 SetupWizard: Initial commit 2015-01-15 16:04:44 -08:00