Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xabber-android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
xabber-android
Commits
e9f664f0
Commit
e9f664f0
authored
May 25, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"Clear status history" hided on some devices fixed - important to add listview adapter after footer
parent
156340e1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
16 deletions
+4
-16
StatusEditor.java
app/src/main/java/com/xabber/android/ui/StatusEditor.java
+2
-5
clear_status_history.xml
app/src/main/res/menu/clear_status_history.xml
+0
-9
theme.xml
app/src/main/res/values/theme.xml
+2
-2
No files found.
app/src/main/java/com/xabber/android/ui/StatusEditor.java
View file @
e9f664f0
...
...
@@ -101,12 +101,13 @@ public class StatusEditor extends ManagedListActivity implements OnItemClickList
listView
.
setOnItemClickListener
(
this
);
registerForContextMenu
(
listView
);
adapter
=
new
StatusEditorAdapter
(
this
);
setListAdapter
(
adapter
);
View
footerView
=
((
LayoutInflater
)
getSystemService
(
Context
.
LAYOUT_INFLATER_SERVICE
)).
inflate
(
R
.
layout
.
status_history_footer
,
null
,
false
);
footerView
.
findViewById
(
R
.
id
.
clear_status_history_button
).
setOnClickListener
(
this
);
listView
.
addFooterView
(
footerView
);
setListAdapter
(
adapter
);
statusTextView
=
(
EditText
)
findViewById
(
R
.
id
.
status_text
);
statusModeView
=
(
Spinner
)
findViewById
(
R
.
id
.
status_icon
);
statusModeView
.
setAdapter
(
new
StatusModeAdapter
(
this
));
...
...
@@ -191,10 +192,6 @@ public class StatusEditor extends ManagedListActivity implements OnItemClickList
case
R
.
id
.
action_change_status
:
changeStatus
();
return
true
;
case
R
.
id
.
action_clear_status_history
:
clearStatusHistory
();
return
true
;
}
return
false
;
}
...
...
app/src/main/res/menu/clear_status_history.xml
deleted
100644 → 0
View file @
156340e1
<?xml version="1.0" encoding="utf-8"?>
<menu
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<item
android:id=
"@+id/action_clear_status_history"
android:title=
"@string/clear_status_history"
app:showAsAction=
"always"
android:orderInCategory=
"90"
/>
</menu>
\ No newline at end of file
app/src/main/res/values/theme.xml
View file @
e9f664f0
...
...
@@ -20,8 +20,8 @@
<!--for text selection toolbar to be above usual toolbar -->
<item
name=
"windowActionModeOverlay"
>
true
</item>
<!--
for hardware button menu
-->
<
item
name=
"panelBackground"
>
?attr/colorPrimary
</item
>
<!--
<!– for hardware button menu –>
-->
<
!--<item name="panelBackground">?attr/colorPrimary</item>--
>
</style>
<style
name=
"ToolbarTitle"
parent=
"@style/TextAppearance.Widget.AppCompat.Toolbar.Title"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment