diff options
author | Chiao Cheng <chiaocheng@google.com> | 2013-07-19 19:10:55 -0700 |
---|---|---|
committer | Chiao Cheng <chiaocheng@google.com> | 2013-07-22 11:39:09 -0700 |
commit | e331d604d5ab345b06976c0ff7a930930f6b9e41 (patch) | |
tree | a09f34a37d63c21b870592666575dad919a21824 /src/com/android/incallui/CallHandlerService.java | |
parent | ed6adb062b06a0ad4d7bd2c1d3ea5d04c3370a0f (diff) | |
download | packages_apps_InCallUI-e331d604d5ab345b06976c0ff7a930930f6b9e41.tar.gz packages_apps_InCallUI-e331d604d5ab345b06976c0ff7a930930f6b9e41.tar.bz2 packages_apps_InCallUI-e331d604d5ab345b06976c0ff7a930930f6b9e41.zip |
Adding call card and buttons to UI.
- Created a fragment for call card and a fragment for UI.
- Adding corresponding button images.
Change-Id: I5facacd3a4346ab9d9ec2a67a2742dc27dbf5583
Diffstat (limited to 'src/com/android/incallui/CallHandlerService.java')
-rw-r--r-- | src/com/android/incallui/CallHandlerService.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/com/android/incallui/CallHandlerService.java b/src/com/android/incallui/CallHandlerService.java index 741701ce..b5f14970 100644 --- a/src/com/android/incallui/CallHandlerService.java +++ b/src/com/android/incallui/CallHandlerService.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012 The Android Open Source Project + * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -11,7 +11,7 @@ * 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. + * limitations under the License */ package com.android.incallui; @@ -68,8 +68,11 @@ public class CallHandlerService extends Service { // TODO(klp): Not sure if static call is ok. Might need to switch to normal service binding. public static void answerCall(int callId) { - Preconditions.checkState(mCallCommandService != null); - + //Preconditions.checkState(mCallCommandService != null); + // TODO(klp): enable fail fast later. + if (mCallCommandService == null) { + return; + } try { mCallCommandService.answerCall(callId); } catch (RemoteException e) { |