From b3db4c77dcec3649b1e3b76a7196f0e1578bbb5f Mon Sep 17 00:00:00 2001 From: zhuchunyao Date: Fri, 23 Mar 2018 10:59:36 +0800 Subject: [PATCH] modify build.gradle. --- build.gradle | 14 +++++++------- src/com/android/launcher3/Hotseat.java | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 63b72db..a6a4e37 100644 --- a/build.gradle +++ b/build.gradle @@ -12,12 +12,12 @@ apply plugin: 'com.android.application' apply plugin: 'com.google.protobuf' android { - compileSdkVersion 26 - buildToolsVersion '26.0.0' + compileSdkVersion 25 + buildToolsVersion '25.0.2' defaultConfig { minSdkVersion 21 - targetSdkVersion 26 + targetSdkVersion 25 versionCode 1 versionName "1.0" @@ -59,15 +59,15 @@ repositories { } dependencies { - compile 'com.android.support:support-v4:26.0.0-alpha1' - compile 'com.android.support:recyclerview-v7:26.0.0-alpha1' - compile 'com.android.support:palette-v7:26.0.0-alpha1' + compile 'com.android.support:support-v4:25.2.0' + compile 'com.android.support:recyclerview-v7:25.2.0' + compile 'com.android.support:palette-v7:25.2.0' compile 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-2' testCompile 'junit:junit:4.12' androidTestCompile 'com.android.support.test:runner:0.5' androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2' - androidTestCompile 'com.android.support:support-annotations:26.0.0-alpha1' + androidTestCompile 'com.android.support:support-annotations:25.2.0' } protobuf { diff --git a/src/com/android/launcher3/Hotseat.java b/src/com/android/launcher3/Hotseat.java index ead6abb..52bf8a1 100644 --- a/src/com/android/launcher3/Hotseat.java +++ b/src/com/android/launcher3/Hotseat.java @@ -112,7 +112,7 @@ int getCellYFromOrder(int rank) { protected void onFinishInflate() { super.onFinishInflate(); DeviceProfile grid = mLauncher.getDeviceProfile(); - mContent = findViewById(R.id.layout); + mContent = (CellLayout) findViewById(R.id.layout); //modify // if (grid.isLandscape && !grid.isLargeTablet) { // mContent.setGridSize(1, (int) grid.inv.numHotseatIcons);