Skip to content

Commit

Permalink
Import some local fixes
Browse files Browse the repository at this point in the history
Change-Id: I408707a9b5474aa40755fd041169ac8503df9817
  • Loading branch information
romannurik committed Jan 6, 2015
1 parent 0bdcb55 commit ba58a98
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ language: android

android:
components:
- build-tools-21.1.1
- build-tools-21.1.2
- android-20
- android-21
- extra-google-m2repository
Expand Down
2 changes: 1 addition & 1 deletion Wearable/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repositories {

android {
compileSdkVersion 20
buildToolsVersion "20.0.0"
buildToolsVersion "21.1.2"

defaultConfig {
applicationId "com.google.samples.apps.iosched"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private static String getSessionIdFromPreference(Context context) {
*/
public static final void LOGD(String TAG, String message) {
if (Log.isLoggable(TAG, Log.DEBUG)) {
LOGD(TAG, message);
Log.d(TAG, message);
}
}

Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repositories {

android {
compileSdkVersion 21
buildToolsVersion "21.1.1"
buildToolsVersion "21.1.2"

defaultConfig {
minSdkVersion 14
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1361,6 +1361,10 @@ private void formatNavDrawerItem(View view, int itemId, boolean selected) {
ImageView iconView = (ImageView) view.findViewById(R.id.icon);
TextView titleView = (TextView) view.findViewById(R.id.title);

if (selected) {
view.setBackgroundResource(R.drawable.selected_navdrawer_item_background);
}

// configure its appearance according to whether or not it's selected
titleView.setTextColor(selected ?
getResources().getColor(R.color.navdrawer_text_color_selected) :
Expand All @@ -1383,7 +1387,7 @@ private void registerGCMClient() {

} else {
// Get the correct GCM key for the user. GCM key is a somewhat non-standard
// approach we use in this app. For more about this, check GCM.MD.
// approach we use in this app. For more about this, check GCM.TXT.
final String gcmKey = AccountUtils.hasActiveAccount(this) ?
AccountUtils.getGcmKey(this, AccountUtils.getActiveAccountName(this)) : null;
// Device is already registered on GCM, needs to check if it is
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!--
Copyright 2014 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<solid android:color="#12000000" />
</shape>
</item>
<item android:drawable="?android:selectableItemBackground" />
</layer-list>
2 changes: 1 addition & 1 deletion doc/BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ This is a Gradle-based project that works best with [Android Studio].
- Tools > Android SDK Platform-tools (rev 21 or above)
- Tools > Android SDK Tools (rev 23.0.5 or above)
- Tools > Android SDK Build-tools version 20
- Tools > Android SDK Build-tools version 21 (rev 21.0.2 or above)
- Tools > Android SDK Build-tools version 21 (rev 21.1.2 or above)
- Android 4.4W2 > SDK Platform (API 20)
- Android 5.0 > SDK Platform (API 21)
- Extras > Android Support Repository
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sat Jun 07 00:06:01 EDT 2014
#Tue Dec 02 14:11:25 EST 2014
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip

0 comments on commit ba58a98

Please sign in to comment.