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

Commit 0a02ddb

Browse files
committed
Added user logout via the options menu.
1 parent 1bce4a1 commit 0a02ddb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

user-auth-ui/app/src/main/java/com/adobe/userauthui/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public boolean onOptionsItemSelected(MenuItem item) {
125125
int id = item.getItemId();
126126

127127
//noinspection SimplifiableIfStatement
128-
if (id == R.id.action_settings) {
128+
if (id == R.id.action_logout) {
129129
return true;
130130
}
131131

user-auth-ui/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.userauthui.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">User Auth UI</string>
3-
<string name="action_settings">Settings</string>
3+
<string name="action_logout">Log Out</string>
44
</resources>

0 commit comments

Comments
 (0)