equal
deleted
inserted
replaced
138 name = StringLoader::LoadL(R_JAVA_CONSET_SETT_DEFAULT_CONNECTION); |
138 name = StringLoader::LoadL(R_JAVA_CONSET_SETT_DEFAULT_CONNECTION); |
139 break; |
139 break; |
140 } |
140 } |
141 default: |
141 default: |
142 { |
142 { |
143 RCmManagerExt manager; |
143 TRAPD(err, |
144 manager.OpenLC(); |
144 RCmManagerExt manager; |
145 RCmDestinationExt destination = manager.DestinationL(apnId); |
145 manager.OpenLC(); |
146 CleanupClosePushL(destination); |
146 RCmDestinationExt destination = manager.DestinationL(apnId); |
147 name = destination.NameLC(); |
147 CleanupClosePushL(destination); |
148 CleanupStack::Pop(name); |
148 name = destination.NameLC(); |
149 CleanupStack::PopAndDestroy(&destination); |
149 CleanupStack::Pop(name); |
150 CleanupStack::PopAndDestroy(&manager); |
150 CleanupStack::PopAndDestroy(&destination); |
|
151 CleanupStack::PopAndDestroy(&manager); |
|
152 ); |
|
153 if (err != KErrNone) |
|
154 { |
|
155 // reset it back to default |
|
156 snap->iId = (TUint)KDefaultConnection; |
|
157 name = StringLoader::LoadL(R_JAVA_CONSET_SETT_DEFAULT_CONNECTION); |
|
158 ConnectionManager::setDestinationNetworkIdL(iMidletSuiteUid, snap->iId); |
|
159 } |
151 } |
160 } |
152 } |
161 } |
153 if (resourceOffset > 0) |
162 if (resourceOffset > 0) |
154 { |
163 { |
155 iResourceHandler.DeleteResourceFile(resourceOffset); |
164 iResourceHandler.DeleteResourceFile(resourceOffset); |