Skip to content

Commit ba58a98

Browse files
committed
Import some local fixes
Change-Id: I408707a9b5474aa40755fd041169ac8503df9817
1 parent 0bdcb55 commit ba58a98

File tree

8 files changed

+35
-8
lines changed

8 files changed

+35
-8
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ language: android
1616

1717
android:
1818
components:
19-
- build-tools-21.1.1
19+
- build-tools-21.1.2
2020
- android-20
2121
- android-21
2222
- extra-google-m2repository

Wearable/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repositories {
2525

2626
android {
2727
compileSdkVersion 20
28-
buildToolsVersion "20.0.0"
28+
buildToolsVersion "21.1.2"
2929

3030
defaultConfig {
3131
applicationId "com.google.samples.apps.iosched"

Wearable/src/main/java/com/google/samples/apps/iosched/iowear/utils/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private static String getSessionIdFromPreference(Context context) {
104104
*/
105105
public static final void LOGD(String TAG, String message) {
106106
if (Log.isLoggable(TAG, Log.DEBUG)) {
107-
LOGD(TAG, message);
107+
Log.d(TAG, message);
108108
}
109109
}
110110

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repositories {
2525

2626
android {
2727
compileSdkVersion 21
28-
buildToolsVersion "21.1.1"
28+
buildToolsVersion "21.1.2"
2929

3030
defaultConfig {
3131
minSdkVersion 14

android/src/main/java/com/google/samples/apps/iosched/ui/BaseActivity.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1361,6 +1361,10 @@ private void formatNavDrawerItem(View view, int itemId, boolean selected) {
13611361
ImageView iconView = (ImageView) view.findViewById(R.id.icon);
13621362
TextView titleView = (TextView) view.findViewById(R.id.title);
13631363

1364+
if (selected) {
1365+
view.setBackgroundResource(R.drawable.selected_navdrawer_item_background);
1366+
}
1367+
13641368
// configure its appearance according to whether or not it's selected
13651369
titleView.setTextColor(selected ?
13661370
getResources().getColor(R.color.navdrawer_text_color_selected) :
@@ -1383,7 +1387,7 @@ private void registerGCMClient() {
13831387

13841388
} else {
13851389
// Get the correct GCM key for the user. GCM key is a somewhat non-standard
1386-
// approach we use in this app. For more about this, check GCM.MD.
1390+
// approach we use in this app. For more about this, check GCM.TXT.
13871391
final String gcmKey = AccountUtils.hasActiveAccount(this) ?
13881392
AccountUtils.getGcmKey(this, AccountUtils.getActiveAccountName(this)) : null;
13891393
// Device is already registered on GCM, needs to check if it is
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!--
2+
Copyright 2014 Google Inc. All rights reserved.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
17+
<item>
18+
<shape>
19+
<solid android:color="#12000000" />
20+
</shape>
21+
</item>
22+
<item android:drawable="?android:selectableItemBackground" />
23+
</layer-list>

doc/BUILDING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ This is a Gradle-based project that works best with [Android Studio].
4848
- Tools > Android SDK Platform-tools (rev 21 or above)
4949
- Tools > Android SDK Tools (rev 23.0.5 or above)
5050
- Tools > Android SDK Build-tools version 20
51-
- Tools > Android SDK Build-tools version 21 (rev 21.0.2 or above)
51+
- Tools > Android SDK Build-tools version 21 (rev 21.1.2 or above)
5252
- Android 4.4W2 > SDK Platform (API 20)
5353
- Android 5.0 > SDK Platform (API 21)
5454
- Extras > Android Support Repository
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Sat Jun 07 00:06:01 EDT 2014
1+
#Tue Dec 02 14:11:25 EST 2014
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip

0 commit comments

Comments
 (0)