summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/bluetooth
diff options
context:
space:
mode:
authorAlexander Martinz <eviscerationls@gmail.com>2016-01-27 22:26:11 +0100
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-01-31 13:52:07 -0800
commitf676d3c12dca9afc36657fc68d6b6d06f4007e0e (patch)
tree1095bacd012ab52f7dc243c76a61622eee308061 /src/com/android/settings/bluetooth
parentc5ff8dfbac6136ebee6672a6b0729b320937ab5c (diff)
downloadpackages_apps_Settings-f676d3c12dca9afc36657fc68d6b6d06f4007e0e.zip
packages_apps_Settings-f676d3c12dca9afc36657fc68d6b6d06f4007e0e.tar.gz
packages_apps_Settings-f676d3c12dca9afc36657fc68d6b6d06f4007e0e.tar.bz2
Bluetooth/Wifi: center empty view and set textAppearance to medium
* does not look weird anymore when toggling bluetooth or wifi Change-Id: Ibbf375e241f091bc27b76c273598da9fc0d67ed9 Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
Diffstat (limited to 'src/com/android/settings/bluetooth')
-rw-r--r--src/com/android/settings/bluetooth/BluetoothSettings.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothSettings.java b/src/com/android/settings/bluetooth/BluetoothSettings.java
index d63dbe4..be12e79 100644
--- a/src/com/android/settings/bluetooth/BluetoothSettings.java
+++ b/src/com/android/settings/bluetooth/BluetoothSettings.java
@@ -35,7 +35,6 @@ import android.preference.PreferenceCategory;
import android.preference.PreferenceGroup;
import android.preference.PreferenceScreen;
import android.provider.Settings;
-import android.text.Spannable;
import android.text.style.TextAppearanceSpan;
import android.util.DisplayMetrics;
import android.util.Log;
@@ -143,7 +142,6 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem
mEmptyView = (TextView) getView().findViewById(android.R.id.empty);
getListView().setEmptyView(mEmptyView);
- mEmptyView.setGravity(Gravity.START | Gravity.CENTER_VERTICAL);
final SettingsActivity activity = (SettingsActivity) getActivity();
mSwitchBar = activity.getSwitchBar();
@@ -477,10 +475,6 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem
});
}
getPreferenceScreen().removeAll();
- Spannable boldSpan = (Spannable) mEmptyView.getText();
- boldSpan.setSpan(
- new TextAppearanceSpan(getActivity(), android.R.style.TextAppearance_Medium), 0,
- briefText.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
}
@Override