diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-18 17:39:49 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-18 17:39:49 -0700 |
commit | a74353e4fdb88e9d31e1af2875e7674f0292968c (patch) | |
tree | 0af1f9f677b10327d85cfe27c5af7301047e0127 | |
parent | 60a38e671d21fe608efddd9aeb5857633ad9a5ad (diff) | |
download | ImProvider-a74353e4fdb88e9d31e1af2875e7674f0292968c.tar.gz |
auto import from //branches/cupcake_rel/...@140373
-rw-r--r-- | AndroidManifest.xml | 3 | ||||
-rw-r--r-- | res/values/config.xml | 25 | ||||
-rw-r--r-- | src/com/android/providers/im/ProviderListItem.java | 2 |
3 files changed, 29 insertions, 1 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 23b4958..8609528 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -30,7 +30,8 @@ android:writePermission="com.android.providers.im.permission.WRITE_ONLY" android:grantUriPermissions="true" /> - <activity android:name=".LandingPage"> + <activity android:name=".LandingPage" + android:enabled="@bool/enableLandingPageActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.VIEW" /> diff --git a/res/values/config.xml b/res/values/config.xml new file mode 100644 index 0000000..bac58b4 --- /dev/null +++ b/res/values/config.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2009, 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. +*/ +--> + +<!-- These resources are around just to allow their values to be customized + for different hardware and product builds. --> +<resources> + <!-- Flag indicating whether IM app should be shown in the application tray --> + <bool name="enableLandingPageActivity">true</bool> +</resources> diff --git a/src/com/android/providers/im/ProviderListItem.java b/src/com/android/providers/im/ProviderListItem.java index f2f0da8..9032e94 100644 --- a/src/com/android/providers/im/ProviderListItem.java +++ b/src/com/android/providers/im/ProviderListItem.java @@ -141,6 +141,8 @@ public class ProviderListItem extends LinearLayout { providerName.setTextColor(0xff000000); loginName.setTextColor(0xff000000); chatView.setTextColor(0xff000000); + } else { + chatView.setVisibility(View.GONE); } secondRowText = cursor.getString(mActiveAccountUserNameColumn); |