private void startListenForPhoneState() {
if (!mListening && mSlcReady) {
- long subId = SubscriptionManager.getDefaultSubId();
+ int subId = SubscriptionManager.getDefaultSubId();
if (SubscriptionManager.isValidSubId(subId)) {
mPhoneStateListener = getPhoneStateListener(subId);
}
}
- private PhoneStateListener getPhoneStateListener(long subId) {
+ private PhoneStateListener getPhoneStateListener(int subId) {
PhoneStateListener mPhoneStateListener = new PhoneStateListener(subId) {
@Override
public void onServiceStateChanged(ServiceState serviceState) {