summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-07-09 20:03:32 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-07-09 20:03:32 +0000
commit4047eeeff9e898aebd8f0434dc6cd10b812ee809 (patch)
treea60928806b39da2d25b9b5f888de89a94e9e78e3
parent15d2f9700aab91edd0050c862d6304cc4298f94a (diff)
parent7219b525e0a2254b67fa4f95370e770b03d89247 (diff)
am 58104125: am 8da28140: am 7b8535ef: am 6a3ec937: Merge "Set task description for InCallActivity" into mnc-dev
* commit '581041255ab6811d8cca1e6f75588af9d6d43f54': 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);
}
/**