diff options
author | Kenny Root <kenny@the-b.org> | 2015-09-05 10:39:06 -0700 |
---|---|---|
committer | Kenny Root <kenny@the-b.org> | 2015-09-05 10:41:23 -0700 |
commit | ac1b8a07373ab015395171abad434b8b3fb862a9 (patch) | |
tree | c45e90e099c69238d5d938a66d37441e0926ccd2 | |
parent | b2748860ef6d9ea6d99ebb98def5eb23d2b29120 (diff) | |
download | connectbot-ac1b8a07373ab015395171abad434b8b3fb862a9.tar.gz connectbot-ac1b8a07373ab015395171abad434b8b3fb862a9.tar.bz2 connectbot-ac1b8a07373ab015395171abad434b8b3fb862a9.zip |
Fix host list for API 10 and before
There is some kind of problem with inheriting TextAppearance.AppCompat
on API 10 and before that causes a crash. Instead only inherit it on API
11 (Honeycomb) and later. This doesn't make any visual difference with
Gingerbread and before.
-rw-r--r-- | app/src/main/res/values-v11/styles.xml | 22 | ||||
-rw-r--r-- | app/src/main/res/values/styles.xml | 35 |
2 files changed, 39 insertions, 18 deletions
diff --git a/app/src/main/res/values-v11/styles.xml b/app/src/main/res/values-v11/styles.xml new file mode 100644 index 0000000..9f8d6a0 --- /dev/null +++ b/app/src/main/res/values-v11/styles.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?><!-- +/* + ~ ConnectBot: simple, powerful, open-source SSH client for Android + ~ Copyright 2015 Kenny Root, Jeffrey Sharkey + ~ + ~ 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. + */ +--> +<resources> + <style name="ListItemFirstLineText" parent="TextAppearance.AppCompat" /> + <style name="ListItemSecondLineText" parent="TextAppearance.AppCompat" /> +</resources> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 593af85..a850d38 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -1,20 +1,19 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- +<?xml version="1.0" encoding="utf-8"?><!-- /* - * ConnectBot: simple, powerful, open-source SSH client for Android - * Copyright 2007 Kenny Root, Jeffrey Sharkey - * - * 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. + ~ ConnectBot: simple, powerful, open-source SSH client for Android + ~ Copyright 2015 Kenny Root, Jeffrey Sharkey + ~ + ~ 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. */ --> <resources> @@ -31,12 +30,12 @@ <item name="android:background">@drawable/keyboard_button_selector</item> </style> - <style name="ListItemFirstLineText" parent="TextAppearance.AppCompat"> + <style name="ListItemFirstLineText"> <item name="android:textColor">?android:textColorPrimary</item> <item name="android:textSize">16sp</item> </style> - <style name="ListItemSecondLineText" parent="TextAppearance.AppCompat"> + <style name="ListItemSecondLineText"> <item name="android:textColor">?android:textColorSecondary</item> <item name="android:textSize">14sp</item> </style> |