Skip to content
This repository was archived by the owner on Jul 27, 2019. It is now read-only.

Commit 880858c

Browse files
committed
Enable user logout via options menu.
1 parent 3a3de33 commit 880858c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

send-to-desktop-api/app/src/main/java/com/adobe/sendtodesktopapi/MainActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ public boolean onOptionsItemSelected(MenuItem item) {
124124
int id = item.getItemId();
125125

126126
//noinspection SimplifiableIfStatement
127-
if (id == R.id.action_settings) {
127+
if (id == R.id.action_logout) {
128+
mUXAuthManager.logout();
128129
return true;
129130
}
130131

send-to-desktop-api/app/src/main/res/menu/menu_main.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
xmlns:tools="http://schemas.android.com/tools"
44
tools:context="com.adobe.sendtodesktopapi.MainActivity">
55
<item
6-
android:id="@+id/action_settings"
6+
android:id="@+id/action_logout"
77
android:orderInCategory="100"
8-
android:title="@string/action_settings"
8+
android:title="@string/action_logout"
99
app:showAsAction="never" />
1010
</menu>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<resources>
22
<string name="app_name">Send To Desktop API</string>
3-
<string name="action_settings">Settings</string>
3+
<string name="action_logout">Log Out</string>
44
</resources>

0 commit comments

Comments
 (0)