Merge "Change PIP notification icon" into oc-dev

am: 9f3967fee1

Change-Id: I5c42cb241ef98bc5e70b03d460230e3ac2115240
This commit is contained in:
Shubang
2017-06-22 21:44:18 +00:00
committed by android-build-merger
2 changed files with 26 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2017 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.
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.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="36dp"
android:height="36dp"
android:viewportWidth="25"
android:viewportHeight="25">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M19,7h-8v6h8L19,7zM21,3L3,3c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,1.98 2,1.98h18c1.1,0 2,-0.88 2,-1.98L23,5c0,-1.1 -0.9,-2 -2,-2zM21,19.01L3,19.01L3,4.98h18v14.03z"/>
</vector>

View File

@@ -174,7 +174,7 @@ public class PipNotification {
void onConfigurationChanged(Context context) { void onConfigurationChanged(Context context) {
Resources res = context.getResources(); Resources res = context.getResources();
mDefaultTitle = res.getString(R.string.pip_notification_unknown_title); mDefaultTitle = res.getString(R.string.pip_notification_unknown_title);
mDefaultIconResId = R.drawable.pip_expand; mDefaultIconResId = R.drawable.pip_icon;
if (mNotified) { if (mNotified) {
// update notification // update notification
notifyPipNotification(); notifyPipNotification();