summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-07-09 10:50:46 -0700
committerYorke Lee <yorkelee@google.com>2015-07-09 11:48:40 -0700
commitd5388a70f8271bdfadef6b01f9820767e880be67 (patch)
tree19adc5e3a0d85a87125d4ad8e6aa69a655728d70 /InCallUI
parent5e9d0a78b3407811ad2b8301a766e227cbd57894 (diff)
Set task description for InCallActivity
Bug: 22275083 Change-Id: I0e955a2bca1af9d0059082872aaa2b7f4e6e8042
Diffstat (limited to 'InCallUI')
-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);
}
/**