Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1707878 authored by Luca Stefani's avatar Luca Stefani
Browse files

Show "No apps" if no apps can be forced to full screen aspect ratio

Change-Id: I9cebf8a90d35924d3947377549ac5ed8a76ac9c9
parent 85e0b860
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -31,4 +31,13 @@
        android:divider="@null"
        android:fastScrollEnabled="true" />

    <TextView
        android:id="@+id/user_list_empty_view"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:text="@string/long_screen_settings_no_apps"
        android:textSize="18dp"
        android:visibility="gone" />

</RelativeLayout>
+1 −0
Original line number Diff line number Diff line
@@ -591,6 +591,7 @@
    <!-- Applications: Long screen -->
    <string name="long_screen_settings_title">Full screen apps</string>
    <string name="long_screen_settings_summary">Force legacy apps to use full screen aspect ratio</string>
    <string name="long_screen_settings_no_apps">No apps</string>

    <!-- Sounds: Charging sounds -->
    <string name="charging_sounds_settings_title">Charging sounds</string>
+1 −0
Original line number Diff line number Diff line
@@ -90,6 +90,7 @@ public class LongScreenSettings extends SettingsPreferenceFragment

        mUserListView = (ListView) view.findViewById(R.id.user_list_view);
        mUserListView.setAdapter(mAllPackagesAdapter);
        mUserListView.setEmptyView(view.findViewById(R.id.user_list_empty_view));
    }

    @Override