summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/sim
Commit message (Collapse)AuthorAgeFilesLines
* SimSettings: avoid NPEMarcos Marado2016-12-311-2/+7
| | | | | | | | | | | | | | | | | | | | | | | Don't assume getPhoneAccount doesn't return null just because you're passing a non-null argument. Avoids: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.CharSequence android.telecom.PhoneAccount.getLabel()' on a null object reference at com.android.settings.sim.SimSettings.updateCallValues(SimSettings.java:299) at com.android.settings.sim.SimSettings.updateActivitesCategory(SimSettings.java:237) at com.android.settings.sim.SimSettings.updateAllOptions(SimSettings.java:222) at com.android.settings.sim.SimSettings.updateSubscriptions(SimSettings.java:217) at com.android.settings.sim.SimSettings.-wrap4(SimSettings.java) at com.android.settings.sim.SimSettings$1.onSubscriptionsChanged(SimSettings.java:175) at android.telephony.SubscriptionManager$OnSubscriptionsChangedListener$1.handleMessage(SubscriptionManager.java:397) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5461) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Change-Id: Ibdb5a978744a8f3e5dd916d08297a07d98aca5be
* SimSettings: Make provisioning optional even if qti-telephony is presentRicardo Cerqueira2016-07-281-1/+2
| | | | | | | Current code assumes the manual provisioning options should come up if the qti-telephony blob is present. Don't make that assumption. Change-Id: I5e4f28b628e3fe3fe9e506631e92c85103e87ccf
* Settings: Disable sim switch if subscription isn't validLuca Stefani2016-07-051-1/+1
| | | | Change-Id: I22ba9a3270da13f77fdd43586b7dc487f0929453
* Settings: Don't set the icon for sim activation / deactivation dialogLuK13372016-07-051-1/+0
| | | | | | | * This icon doesn't look any good. It's better to just get rid of it. Change-Id: I47f70a80136695e9aa61ff98999a2cf770390079
* Telephony(MSIM): Fix ANR on SIM deactivationVenkatraman Nerellapalli2016-07-011-15/+35
| | | | | | | | Dismiss dialog box on confirmation. SIM activation & deactivation in background thread. Change-Id: I0268a710f35e30b2abec3dd671942b52fc0e0b46 CRs-Fixed: 957308
* Settings: handle 'always ask' for SMS subscription on 3rd party appsRoman Birg2016-06-211-1/+45
| | | | | | | | | | | | | We need to ensure that the SMS app has a valid subscription to use as 3rd party apps don't know how to use our custom "always ask" logic. Don't allow the user to choose "always ask" if a 3rd party SMS app is currently the deafult. Ticket: CYNGNOS-3068 Change-Id: I4aabf43adfb4fdc39e7656aa872abf73d9a5edbe Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: persist "always ask" sms sim selectionRoman Birg2016-05-191-1/+2
| | | | | | | | | | The dialog was prompted, and the user has picked always prompt, don't ask them again, the Messaging app will need to request which SIM to use. Ticket: CYNGNOS-2185, CYNGNOS-2570 Change-Id: I95a510974b89945da252f4c6c3e905e9a0de81af Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: fix incorrect default sim/sms/data selection logicRoman Birg2016-04-251-0/+1
| | | | | | | | | | | change id I8ba32f3b203751e79697c7dcbc2cfcf1c6ae4ad0 broke this and assumed all needed a default index of 0; set it to -1 only for the data selection. Ticket: CYNGNOS-2388, CYNGNOS-2212 Change-Id: Ic81d1151aa71017e261107f1d67785cc50f2bd7f Signed-off-by: Roman Birg <roman@cyngn.com>
* Settings: fix default sim radio selectionsRoman Birg2016-04-111-4/+3
| | | | | | Change-Id: I8ba32f3b203751e79697c7dcbc2cfcf1c6ae4ad0 Ticket: CYNGNOS-2388, CYNGNOS-2212 Signed-off-by: Roman Birg <roman@cyngn.com>
* MSIM: Fix erroneous defaults display in slot selection dialogRicardo Cerqueira2016-03-081-1/+1
| | | | | | | | | | | Initializing the index at zero was showing the first slot as the default when none was chosen. Since that's not actually true, leave it outside the possible range so that the radio selectors stay empty if that's the case. Addresses CYNGNOS-2212 Change-Id: I4a74f9c89bbf14bbe39e0d51733a1d5f92c5a1df
* SIM: Only trigger sub updates if the lifecycle isn't endingDiogo Ferreira2016-02-161-1/+5
| | | | | | | | | | This broadcast would cause a re-rendering of the sim preferences but the activity context is actually tearing down at that point which causes common context items such as resources items to be null. Change-Id: I5cb23f941c9ace6382dbc324c8e1820f54853eda TICKET:CYNGNOS-1918
* SimDialogActivity: Check whether there is no default subDiogo Ferreira2016-02-091-1/+2
| | | | | | | | | | | | | | | On an out-of-the-box device, no data subscription will be selected by default. If a single SIM is added, it will become the default data subscription but if two sims are added at the same time there will be no default. In this case, this dialog will crash because it's trying to get the subscription id from a null default. This patch short-circuits the clause to always update if there is no default. Change-Id: Icd4dffaf918d43d85f807cd6a14f93abb118eca4 Ticket: CYNGNOS-1940
* Settings : Add radio button / selection states for default SIMsDanesh M2016-02-031-11/+48
| | | | | | CRACKLING-928 Change-Id: I786d4d921987d483cd0a5fa77976a0b8047d06db
* SimSettings: Disable entry for missing simDiogo Ferreira2016-02-011-3/+6
| | | | | | | | | | | | | | Clicking on a missing SIM card will show incorrect information because the user network preference is indexed by subscription id. This means that when the SIM is not present we cannot infer which subscription settings we are actually showing or changing so the whole screen is effectively useless. This patch disables configuration entries for invalid subscriptions. Ticket: CYNGNOS-1794 Change-Id: Ic5125f66f4cdaafe06d03b3b20b80341525d6c87
* Settings : Finish SimPreferenceDialog on dismissDanesh M2016-01-281-1/+6
| | | | | | CYNGNOS-1515 Change-Id: I2f69a876419a0ace61a6a8e682496db0d62bbfa1
* Integrate mobile network settings into SIM settings for MSIM.Danny Baumann2016-01-061-3/+21
| | | | Change-Id: I3ab67d0dcb2979d2b527d40642d0c0f5b3e07034
* Move more CAF strings and cleanupMichael Bestas2016-01-052-3/+3
| | | | | | | | | * Move all CAF strings to cm_strings * Remove duplicate strings * Reuse sim_calls_ask_first_prefs_title for sms * Improve CAF SIM enabler strings Change-Id: I6cf0fb0fe23800301b1fc8c37022ee9b79b5818b
* Hide manual provisioning switch when extphone framework is not presentLuK13372016-01-041-4/+6
| | | | | | * It doesn't work without it. Change-Id: Iec11ec2006059f26668f2a6fee4c2c9ca6650119
* Settings: Utilize frameworks sms prompt interfaces as fallback.Adnan Begovic2015-12-182-0/+11
| | | | | Ticket: CYNGNOS-1440 Change-Id: I0890d5cc25124dc94434216763cb8965986ca4b3
* Merge branch 'LA.BF64.1.2.2_rb4.7' of ↵Steve Kondik2015-11-161-24/+63
|\ | | | | | | git://codeaurora.org/platform/packages/apps/Settings into cm-13.0
| * SimSettings: Cellular Data PreferenceBeena More2015-11-051-24/+63
| | | | | | | | | | | | | | | | | | DDS switch triggered in an active CS session will fail PS attach on the sub to switch to. Fixing this by disabling cellular data prefrence when call state is not idle. Change-Id: I0a771e65d1e96835996b7f97ead37f4e864872eb CRs-Fixed: 757906, 915638
* | Break MSIM dependency on qci-telephony-frameworkRicardo Cerqueira2015-11-051-0/+4
|/ | | | | | | If the provisioning state is invalid, the framework is most likely absent. Consider the card as provisioned to pass all relevant checks. Change-Id: I975ff156e4328e9d3f6e2626a863bbacb29e3337
* Telephony(MSIM): Add Sms Prompt supportSridhar Dubbaka2015-10-062-10/+64
| | | | | | | | In Msim, Whenver user selects Ask every time option in Sim settings, Mms app will prompt for slection of sub from composemessageactivity, on which SMS to be sent. Change-Id: I39b1e1e3963779c717ea2aa49de94b6f0088984b
* MSIM: Display SIM info even if APM is onSooraj Sasindran2015-10-061-1/+9
| | | | | | | | If device is in APM, then display the sim info and disable button to activate/deactivate sim. CRs-Fixed: 910841 Change-Id: Id4726f9f45eab2b813d7d4a448d9edae4a1bfe2e
* Telephony(MSIM): Select preferred primary sub.Sandeep Gutta2015-10-061-5/+61
| | | | | | | | Add UI to select preferred primary sub. It is used when two SIM cards inserted have same priority as per policy. Change-Id: I5726fe9f4df03e680dc2406854d08da77297444d
* Telephony(MSIM): Fix to do not allow both SIM deactivationSandeep Gutta2015-10-061-1/+1
| | | | | | | | Use proper SubInfo record object to do not allow user to deactivate both SIMs on DSDS devices. Change-Id: I6f56d819367272b3a009c7a8133709c643e8bd84 CRs-Fixed: 893504
* Telephony(MSIM): Manual provision related fixesSandeep Gutta2015-10-062-57/+54
| | | | | | | | | | | | | - Consider Manual provision state while displaying active sub info list. - Enable sms/data user preference option only if more than one subscription active. - Introduce below system proeprty to control AOSP behavior of user selection of fallback preference for sms/data "persist.radio.aosp_usr_pref_sel" Change-Id: I2b308b801f3f677c5a3ffaee5a8e6beda12aedd2
* Telephony(MSIM): Add Manual provisioning supportChaitanya Saggurthi2015-10-061-6/+574
| | | | | | | Add toggle switch UI option in SimSettings screen to enable/disable SIM cards Change-Id: Id07271aedb12eabc0b106ac278ba2e12c71cfe03
* Fix SimPreference dialog from closing on orientation change.Sanket Padawe2015-06-102-188/+261
| | | | | Bug: 19041463 Change-Id: I8c91fd6f01bbeb7561365dbb76ba3d4c05b76efc
* Send sim change notification based on sim state change.Sanket Padawe2015-06-012-158/+110
| | | | | | | | | | | + Send sim change notifications based on Sim state change rather then based on subscription change. + Make SimSettings dynamically update based on subscriptions changed. Would support hotswap which was not supported before this. Bug: 20739298 Bug: 18385348 Change-Id: I5bb4b05f55b94eb0ed2a1a83fe2f168192b2b684
* Disable data sim selection when phone call active.Sanket Padawe2015-04-221-0/+31
| | | | | | Bug: 19301456 Bug: 19150497 Change-Id: I396641b24e78616c93510bf367b61fa7c47ec068
* Correct the way settings deals with subscriptions.Stuart Scott2015-04-082-20/+11
| | | | Change-Id: I19e9dfaf248fce7376b124ee91de7e73fdc99fb3
* log visibility of viewsChris Wren2015-03-271-0/+6
| | | | | Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
* am f6432118: am 4a682e56: am c28e80b8: am 53eec9fa: Fix sim notifications.Stuart Scott2015-03-251-51/+34
|\ | | | | | | | | * commit 'f64321184cbe64ab010ffd2fde9bbd543bec9299': Fix sim notifications.
| * Fix sim notifications.Stuart Scott2015-03-251-51/+34
| | | | | | | | | | bug:19705366 Change-Id: I1d1f2dc5cf1d4580ab503c88853b089db0362242
* | Clean up usage of theme colors, deprecated Resources.getColor* methodsAlan Viverette2015-03-181-1/+1
| | | | | | | | Change-Id: I34e11e0773c9f8e00e3eab422781094e19a16d3d
* | Settings: Remove all unused imports.John Spurlock2015-03-181-6/+0
| | | | | | | | Change-Id: Iebfa52cb849d69974c94902b0b020893cf5618a3
* | am 85b04c19: am 130a76c8: am 49d660ac: am 4e838ca9: Merge "Use ↵Sanket Padawe2015-02-261-1/+7
|\ \ | |/ | | | | | | | | | | TelephonyManager api to get SPN of sim to display in UI." into lmp-mr1-dev * commit '85b04c19ed81e74709d74d2acffd4bd42a3b07de': Use TelephonyManager api to get SPN of sim to display in UI.
| * Use TelephonyManager api to get SPN of sim to display in UI.Sanket Padawe2015-02-241-1/+7
| | | | | | | | | | Bug: 19476304 Change-Id: Ia16465584cf31858bbf1ae36cfdbf21184de10d7
* | Update Multi-SIM setting to use getSubIdForPhoneAccount API.Santos Cordon2015-02-191-12/+7
| | | | | | | | | | | | | | | | Settings app should not be parsing the subId direction from the phone account. Instead this CL updates the settings app to use a new API to grab the sub ID. Change-Id: Iefd1831b04c061168fa2b135a2d296a27e3d4e92
* | am a908d819: am 718c4d9b: Rename reg/unreg OnSubscriptionsChangedListener.Wink Saville2015-01-131-1/+1
|\ \ | |/ | | | | | | | | | | automerge: 1015f08 * commit '1015f08455da4c0823d98d5f74104e0fc3b7de33': Rename reg/unreg OnSubscriptionsChangedListener.
| * Rename reg/unreg OnSubscriptionsChangedListener.Wink Saville2015-01-131-1/+1
| | | | | | | | | | | | | | | | To addOnSubscriptionsChangedListener and removeOnSubscriptionsChangedListener. Bug: 18984103 Change-Id: I6636905093812af89c1c3702840e44c8c5ea891f
* | am 310b5336: am 2c9d75a7: am be3b0c4e: Merge "Fixed crash caused by ↵Sanket Padawe2015-01-061-1/+4
|\ \ | |/ | | | | | | | | | | non-integer phoneAccountId in SimDialogActivity." into lmp-mr1-dev * commit '310b533689ac9ecd6ee3e9abbd4029882522358f': Fixed crash caused by non-integer phoneAccountId in SimDialogActivity.
| * Fixed crash caused by non-integer phoneAccountId in SimDialogActivity.Sanket Padawe2015-01-061-1/+4
| | | | | | | | | | Bug: 18834691 Change-Id: I75b5ba4d72523474fe91eaf80f8201d9a53a683a
* | Grey out sim select dialog for Calls when only 1 phoneAccount existsSanket Padawe2015-01-051-0/+3
|/ | | | | Bug: 18685720 Change-Id: Id7c8f756fd958fc81086a0166f1b0423c62e2569
* Fixed settings crash issue while recovering from phone crash.Sanket Padawe2014-12-221-23/+30
| | | | | Bug: 18816868 Change-Id: I2b3015f563aed2d997a3a5466ca8f0689fc53ddb
* Merge "Prevent sim notify popup after upgrade from k to LMR1." into lmp-mr1-devSanket Padawe2014-12-161-2/+5
|\
| * Prevent sim notify popup after upgrade from k to LMR1.Sanket Padawe2014-12-151-2/+5
| | | | | | | | | | Bug: 18705619 Change-Id: I6de4d20172c69358c1853e6a00c68fc353c7dad7
* | Merge "Exiting activity on clicking outside dialog acitivity." into lmp-mr1-devSanket Padawe2014-12-161-0/+7
|\ \
| * | Exiting activity on clicking outside dialog acitivity.Sanket Padawe2014-12-111-0/+7
| | | | | | | | | | | | | | | Bug: 18705619 Change-Id: I50cb08884f1c97352f5ad3a3e7d218b42af1ada4