mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 973039 - Display message in HomePanelPicker when no Home panels are available for install. r=margaret
This commit is contained in:
parent
b6bd44c822
commit
0562cf517c
@ -123,6 +123,11 @@ public class HomePanelPicker extends FragmentActivity {
|
||||
}
|
||||
}
|
||||
|
||||
if (availablePanels.isEmpty()) {
|
||||
setContentView(R.layout.home_panel_picker_empty);
|
||||
return;
|
||||
}
|
||||
|
||||
final PickerAdapter adapter = (PickerAdapter) mListView.getAdapter();
|
||||
adapter.updateFromPanelInfos(availablePanels);
|
||||
}
|
||||
|
@ -92,6 +92,7 @@
|
||||
<!ENTITY pref_category_home_panels "Panels">
|
||||
<!ENTITY pref_home_add_panel "Add panel">
|
||||
<!ENTITY home_add_panel_title "Add new panel">
|
||||
<!ENTITY home_add_panel_empty "Sorry, we couldn\'t find any panels for you to add.">
|
||||
|
||||
<!-- Localization note: These are shown in the left sidebar on tablets -->
|
||||
<!ENTITY pref_header_customize "Customize">
|
||||
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="15dp"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:text="@string/home_add_panel_empty" />
|
@ -115,6 +115,7 @@
|
||||
<string name="pref_category_home_panels">&pref_category_home_panels;</string>
|
||||
<string name="pref_home_add_panel">&pref_home_add_panel;</string>
|
||||
<string name="home_add_panel_title">&home_add_panel_title;</string>
|
||||
<string name="home_add_panel_empty">&home_add_panel_empty;</string>
|
||||
|
||||
<string name="pref_header_customize">&pref_header_customize;</string>
|
||||
<string name="pref_header_display">&pref_header_display;</string>
|
||||
|
Loading…
Reference in New Issue
Block a user