summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-07-09 19:46:31 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-07-09 19:46:31 +0000
commit7219b525e0a2254b67fa4f95370e770b03d89247 (patch)
treea60928806b39da2d25b9b5f888de89a94e9e78e3
parentf5c7024d83856bc5f50006db0c36d5451edfbe9a (diff)
parenta13d62ef527e04c36d9ee340e94aae364c15b322 (diff)
am 8da28140: am 7b8535ef: am 6a3ec937: Merge "Set task description for InCallActivity" into mnc-dev
* commit '8da281402db0d43bfd475ab6368e027c45b7bb0f': Set task description for InCallActivity
-rw-r--r--InCallUI/src/com/android/incallui/InCallPresenter.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallPresenter.java b/InCallUI/src/com/android/incallui/InCallPresenter.java
index 84ccc7c55..236129637 100644
--- a/InCallUI/src/com/android/incallui/InCallPresenter.java
+++ b/InCallUI/src/com/android/incallui/InCallPresenter.java
@@ -16,6 +16,7 @@
package com.android.incallui;
+import android.app.ActivityManager.TaskDescription;
import android.app.FragmentManager;
import android.content.Context;
import android.content.Intent;
@@ -1486,12 +1487,17 @@ public class InCallPresenter implements CallList.Listener,
}
final Resources resources = mInCallActivity.getResources();
+ final int color;
if (resources.getBoolean(R.bool.is_layout_landscape)) {
- mInCallActivity.getWindow().setStatusBarColor(
- resources.getColor(R.color.statusbar_background_color));
+ color = resources.getColor(R.color.statusbar_background_color, null);
} else {
- mInCallActivity.getWindow().setStatusBarColor(mThemeColors.mSecondaryColor);
+ color = mThemeColors.mSecondaryColor;
}
+
+ mInCallActivity.getWindow().setStatusBarColor(color);
+ final TaskDescription td = new TaskDescription(
+ resources.getString(R.string.notification_ongoing_call), null, color);
+ mInCallActivity.setTaskDescription(td);
}
/**