Merge "Fix print icons in settings." into lmp-dev
This commit is contained in:
19
res/drawable/ic_print.xml
Normal file
19
res/drawable/ic_print.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2014 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.
|
||||
-->
|
||||
|
||||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:src="@*android:drawable/ic_print"
|
||||
android:tint="@*android:color/material_deep_teal_500" />
|
19
res/drawable/ic_print_error.xml
Normal file
19
res/drawable/ic_print_error.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2014 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.
|
||||
-->
|
||||
|
||||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:src="@*android:drawable/ic_print_error"
|
||||
android:tint="@*android:color/material_deep_teal_500" />
|
@@ -204,12 +204,12 @@ public class PrintJobSettingsFragment extends SettingsPreferenceFragment {
|
||||
switch (info.getState()) {
|
||||
case PrintJobInfo.STATE_QUEUED:
|
||||
case PrintJobInfo.STATE_STARTED: {
|
||||
mPrintJobPreference.setIcon(com.android.internal.R.drawable.ic_print);
|
||||
mPrintJobPreference.setIcon(R.drawable.ic_print);
|
||||
} break;
|
||||
|
||||
case PrintJobInfo.STATE_FAILED:
|
||||
case PrintJobInfo.STATE_BLOCKED: {
|
||||
mPrintJobPreference.setIcon(com.android.internal.R.drawable.ic_print_error);
|
||||
mPrintJobPreference.setIcon(R.drawable.ic_print_error);
|
||||
} break;
|
||||
}
|
||||
|
||||
|
@@ -423,12 +423,12 @@ public class PrintSettingsFragment extends SettingsPreferenceFragment
|
||||
switch (printJob.getState()) {
|
||||
case PrintJobInfo.STATE_QUEUED:
|
||||
case PrintJobInfo.STATE_STARTED: {
|
||||
preference.setIcon(com.android.internal.R.drawable.ic_print);
|
||||
preference.setIcon(R.drawable.ic_print);
|
||||
} break;
|
||||
|
||||
case PrintJobInfo.STATE_FAILED:
|
||||
case PrintJobInfo.STATE_BLOCKED: {
|
||||
preference.setIcon(com.android.internal.R.drawable.ic_print_error);
|
||||
preference.setIcon(R.drawable.ic_print_error);
|
||||
} break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user