equal
deleted
inserted
replaced
362 // -------------------------------------------------------------------------- |
362 // -------------------------------------------------------------------------- |
363 // |
363 // |
364 void CTsFswEngine::HiddenAppListUpdated() |
364 void CTsFswEngine::HiddenAppListUpdated() |
365 { |
365 { |
366 UpdateTaskList(); |
366 UpdateTaskList(); |
367 TRAP_IGNORE( iDataList->RemoveHiddenAppsScrenshotsL(); ) |
|
368 } |
367 } |
369 |
368 |
370 // -------------------------------------------------------------------------- |
369 // -------------------------------------------------------------------------- |
371 // CTsFswEngine::CopyBitmapL |
370 // CTsFswEngine::CopyBitmapL |
372 // -------------------------------------------------------------------------- |
371 // -------------------------------------------------------------------------- |
488 if ( wgId == KErrNotFound ) |
487 if ( wgId == KErrNotFound ) |
489 { |
488 { |
490 wgId = aWgId; |
489 wgId = aWgId; |
491 } |
490 } |
492 TInt err = iDataList->AppUidForWgId( wgId, appUid ); |
491 TInt err = iDataList->AppUidForWgId( wgId, appUid ); |
493 TBool hidden = EFalse; |
492 TBool exists = iDataList->CheckForWgIdUsage( wgId ); |
494 TRAP_IGNORE( |
493 if ( err || appUid == KTsCameraUid || !exists ) |
495 hidden = iDataList->HiddenApps()->IsHiddenL( appUid, iWsSession, aWgId) ); |
494 { |
496 if ( err || |
495 // Dont't assign screenshot to camera app |
497 KTsCameraUid == appUid || |
496 TSLOG0( TSLOG_LOCAL, "Screenshot for camera - ignore" ); |
498 hidden ) |
|
499 { |
|
500 // Dont't assign screenshot to camera app or hidden app |
|
501 TSLOG0( TSLOG_LOCAL, "Screenshot for camera or hidden app - ignore" ); |
|
502 iPreviewProvider->AckPreview(aFbsHandle); |
497 iPreviewProvider->AckPreview(aFbsHandle); |
503 TSLOG_OUT(); |
498 TSLOG_OUT(); |
504 return; |
499 return; |
505 } |
500 } |
506 |
501 |
533 // -------------------------------------------------------------------------- |
528 // -------------------------------------------------------------------------- |
534 // CTsFswEngine::HandleFswPpApplicationBitmapRotation |
529 // CTsFswEngine::HandleFswPpApplicationBitmapRotation |
535 // Callback from CTsFastSwapPreviewProvider |
530 // Callback from CTsFastSwapPreviewProvider |
536 // -------------------------------------------------------------------------- |
531 // -------------------------------------------------------------------------- |
537 // |
532 // |
538 void CTsFswEngine::HandleFswPpApplicationBitmapRotation( TInt aWgId, |
533 void CTsFswEngine::HandleFswPpApplicationBitmapRotation( TInt aWgId, TBool aClockwise ) |
539 TInt aFbsHandle, TBool aClockwise ) |
|
540 { |
534 { |
541 TSLOG_CONTEXT( HandleFswPpApplicationBitmapRotation, TSLOG_LOCAL ); |
535 TSLOG_CONTEXT( HandleFswPpApplicationBitmapRotation, TSLOG_LOCAL ); |
542 TSLOG1_IN( "aWgId = %d", aWgId ); |
536 TSLOG1_IN( "aWgId = %d", aWgId ); |
543 |
|
544 HandleFswPpApplicationChange( aWgId, aFbsHandle ); |
|
545 |
537 |
546 CFbsBitmap** bmp = iDataList->FindScreenshot(aWgId); |
538 CFbsBitmap** bmp = iDataList->FindScreenshot(aWgId); |
547 |
539 |
548 if ( bmp ) |
540 if ( bmp ) |
549 { |
541 { |
594 if ( idx != KErrNotFound ) |
586 if ( idx != KErrNotFound ) |
595 { |
587 { |
596 // Update task list |
588 // Update task list |
597 iRotaTasks.Remove(idx); |
589 iRotaTasks.Remove(idx); |
598 } |
590 } |
599 |
591 TInt wgId = iDataList->FindMostTopParentWgId(aWgId); |
600 if ( aError == KErrNone ) |
592 if ( wgId == KErrNotFound ) |
|
593 { |
|
594 wgId = aWgId; |
|
595 } |
|
596 TBool exists = iDataList->CheckForWgIdUsage( wgId ); |
|
597 if ( aError == KErrNone && exists ) |
601 { |
598 { |
602 StoreScreenshot(aWgId, aBitmap); |
599 StoreScreenshot(aWgId, aBitmap); |
603 } |
600 } |
604 else |
601 else |
605 { |
602 { |