|
|
|
@@ -62478,8 +62478,8 @@ int StretchableLayoutManager::fitComponentsIntoSpace (const int startIndex, |
|
|
|
layout->currentSize = sizeToRealSize (layout->minSize, totalSize); |
|
|
|
|
|
|
|
totalMinimums += layout->currentSize; |
|
|
|
totalIdealSize += sizeToRealSize (layout->preferredSize, availableSpace); |
|
|
|
} |
|
|
|
totalIdealSize += sizeToRealSize (layout->preferredSize, totalSize); |
|
|
|
} |
|
|
|
|
|
|
|
if (totalIdealSize <= 0) |
|
|
|
totalIdealSize = 1.0; |
|
|
|
@@ -62497,7 +62497,7 @@ int StretchableLayoutManager::fitComponentsIntoSpace (const int startIndex, |
|
|
|
{ |
|
|
|
ItemLayoutProperties* const layout = items.getUnchecked (i); |
|
|
|
|
|
|
|
double sizeWanted = sizeToRealSize (layout->preferredSize, availableSpace); |
|
|
|
double sizeWanted = sizeToRealSize (layout->preferredSize, totalSize); |
|
|
|
|
|
|
|
const int bestSize = jlimit (layout->currentSize, |
|
|
|
jmax (layout->currentSize, |
|
|
|
@@ -62513,7 +62513,7 @@ int StretchableLayoutManager::fitComponentsIntoSpace (const int startIndex, |
|
|
|
{ |
|
|
|
ItemLayoutProperties* const layout = items.getUnchecked (i); |
|
|
|
|
|
|
|
double sizeWanted = sizeToRealSize (layout->preferredSize, availableSpace); |
|
|
|
double sizeWanted = sizeToRealSize (layout->preferredSize, totalSize); |
|
|
|
|
|
|
|
int bestSize = jlimit (layout->currentSize, |
|
|
|
jmax (layout->currentSize, sizeToRealSize (layout->maxSize, totalSize)), |
|
|
|
@@ -267658,7 +267658,9 @@ public: |
|
|
|
|
|
|
|
AudioSessionSetActive (true); |
|
|
|
|
|
|
|
UInt32 audioCategory = kAudioSessionCategory_PlayAndRecord; |
|
|
|
UInt32 audioCategory = audioInputIsAvailable ? kAudioSessionCategory_PlayAndRecord |
|
|
|
: kAudioSessionCategory_MediaPlayback; |
|
|
|
|
|
|
|
AudioSessionSetProperty (kAudioSessionProperty_AudioCategory, sizeof (audioCategory), &audioCategory); |
|
|
|
AudioSessionAddPropertyListener (kAudioSessionProperty_AudioRouteChange, propertyChangedStatic, this); |
|
|
|
|
|
|
|
|