photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlerback.cpp
equal
deleted
inserted
replaced
173 CMPXCollectionPath* navigationalState = collectionUtility->Collection().PathL(); |
173 CMPXCollectionPath* navigationalState = collectionUtility->Collection().PathL(); |
174 CleanupStack::PopAndDestroy(collectionUtility); |
174 CleanupStack::PopAndDestroy(collectionUtility); |
175 CleanupStack::PushL(navigationalState); |
175 CleanupStack::PushL(navigationalState); |
176 |
176 |
177 // let Back Stepping Service handle the event |
177 // let Back Stepping Service handle the event |
178 if(2 == navigationalState->Levels()&& iNavigationalState->BackExitStatus()) |
178 if((2 == navigationalState->Levels()|| |
|
179 iNavigationalState->StartingLevel() == navigationalState->Levels()-1) |
|
180 && iNavigationalState->BackExitStatus()) |
179 { |
181 { |
180 iBSWrapper->HandleBackCommandL( KPhotosSuiteNavigation ); |
182 iBSWrapper->HandleBackCommandL( KPhotosSuiteNavigation ); |
181 if(iAppUi) |
|
182 { |
|
183 iAppUi->ProcessCommandL(EAknSoftkeyExit); |
|
184 } |
|
185 } |
|
186 else if (!(iNavigationalState->BackExitStatus())) |
|
187 { |
|
188 if(iAppUi) |
183 if(iAppUi) |
189 { |
184 { |
190 iAppUi->ProcessCommandL(EAknSoftkeyExit); |
185 iAppUi->ProcessCommandL(EAknSoftkeyExit); |
191 } |
186 } |
192 } |
187 } |
211 iAppUi->ProcessCommandL(EAknSoftkeyExit); |
206 iAppUi->ProcessCommandL(EAknSoftkeyExit); |
212 } |
207 } |
213 } |
208 } |
214 else |
209 else |
215 { |
210 { |
216 if (!(iNavigationalState->BackExitStatus())) |
|
217 { |
|
218 if(iAppUi) |
|
219 { |
|
220 iAppUi->ProcessCommandL(EAknSoftkeyExit); |
|
221 } |
|
222 } |
|
223 if( iIsViewActivated ) |
211 if( iIsViewActivated ) |
224 { |
212 { |
225 iIsViewActivated = EFalse; |
213 iIsViewActivated = EFalse; |
226 iNavigationalState->ActivatePreviousViewL(); |
214 iNavigationalState->ActivatePreviousViewL(); |
227 } |
215 } |