mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Re-saved all projects
This commit is contained in:
parent
1a31c86f39
commit
2f1981ca8c
48 changed files with 675 additions and 653 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<JUCERPROJECT id="NTe0XB0ij" name="AudioPluginHost" projectType="guiapp" version="1.0.0"
|
||||
juceFolder="../../../juce" vstFolderMac="~/SDKs/vstsdk2.4" vstFolderPC="c:\SDKs\vstsdk2.4"
|
||||
bundleIdentifier="com.roli.juce.pluginhost" jucerVersion="5.3.0"
|
||||
bundleIdentifier="com.roli.juce.pluginhost" jucerVersion="5.3.1"
|
||||
companyName="ROLI Ltd." displaySplashScreen="0" reportAppUsage="0"
|
||||
companyCopyright="ROLI Ltd.">
|
||||
<EXPORTFORMATS>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
|
|||
|
||||
android {
|
||||
compileSdkVersion 23
|
||||
buildToolsVersion "27.0.0"
|
||||
buildToolsVersion "27.0.3"
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
path "CMakeLists.txt"
|
||||
|
|
|
|||
|
|
@ -1823,19 +1823,37 @@ public class AudioPluginHost extends Activity
|
|||
|
||||
private class TreeObserver implements ViewTreeObserver.OnGlobalLayoutListener
|
||||
{
|
||||
TreeObserver()
|
||||
{
|
||||
keyboardShown = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onGlobalLayout()
|
||||
{
|
||||
Rect r = new Rect();
|
||||
|
||||
view.getWindowVisibleDisplayFrame(r);
|
||||
ViewGroup parentView = (ViewGroup) getParent();
|
||||
|
||||
int diff = view.getHeight() - (r.bottom - r.top);
|
||||
if (parentView == null)
|
||||
return;
|
||||
|
||||
parentView.getWindowVisibleDisplayFrame (r);
|
||||
|
||||
int diff = parentView.getHeight() - (r.bottom - r.top);
|
||||
|
||||
// Arbitrary threshold, surely keyboard would take more than 20 pix.
|
||||
if (diff < 20)
|
||||
if (diff < 20 && keyboardShown)
|
||||
{
|
||||
keyboardShown = false;
|
||||
handleKeyboardHidden (view.host);
|
||||
}
|
||||
|
||||
if (! keyboardShown && diff > 20)
|
||||
keyboardShown = true;
|
||||
};
|
||||
|
||||
private boolean keyboardShown;
|
||||
};
|
||||
|
||||
private ComponentPeerView view;
|
||||
|
|
|
|||
|
|
@ -1,15 +1,16 @@
|
|||
buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.0.1'
|
||||
classpath 'com.android.tools.build:gradle:3.1.1'
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
|
||||
Loading…
Add table
Add a link
Reference in a new issue