Fix accessibility for empty list on notification access

Bug: 21797352
Change-Id: I6c68c9abb43c6dfcc8b0a4d07cfe0d4cede6e817
diff --git a/src/com/android/settings/notification/ManagedServiceSettings.java b/src/com/android/settings/notification/ManagedServiceSettings.java
index e9ff428..9ed8744 100644
--- a/src/com/android/settings/notification/ManagedServiceSettings.java
+++ b/src/com/android/settings/notification/ManagedServiceSettings.java
@@ -33,6 +33,7 @@
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
+import android.widget.ListView;
 import android.widget.TextView;
 
 import com.android.settings.R;
@@ -77,6 +78,7 @@
         final View v =  inflater.inflate(R.layout.managed_service_settings, container, false);
         mEmpty = (TextView) v.findViewById(android.R.id.empty);
         mEmpty.setText(mConfig.emptyText);
+        ((ListView) v.findViewById(android.R.id.list)).setEmptyView(mEmpty);
         return v;
     }
 
@@ -114,7 +116,6 @@
             });
             screen.addPreference(pref);
         }
-        mEmpty.setVisibility(services.isEmpty() ? View.VISIBLE : View.GONE);
     }
 
     private boolean setEnabled(ComponentName service, String title, boolean enable) {