Skip to content

Commit

Permalink
Change login display and theme parameter values.
Browse files Browse the repository at this point in the history
Change display from host to touch.
Change theme from android to default.
Remove unused live namespace declaration in sample signin.xml.
  • Loading branch information
skrueger committed Jul 26, 2012
1 parent 22f8f22 commit 72d604d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions sample/res/layout/signin.xml
@@ -1,19 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:live="http://schemas.android.com/apk/res/com.microsoft.live.sample"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center" android:gravity="center"
android:orientation="vertical" > android:orientation="vertical" >

<TextView <TextView
android:id="@+id/textView1" android:id="@+id/textView1"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center" android:gravity="center"
android:text="@string/welcome" android:text="@string/welcome"
android:textAppearance="?android:attr/textAppearanceLarge" /> android:textAppearance="?android:attr/textAppearanceLarge" />

<TextView <TextView
android:id="@+id/beginTextView" android:id="@+id/beginTextView"
android:layout_width="wrap_content" android:layout_width="wrap_content"
Expand Down
4 changes: 2 additions & 2 deletions src/internal/com/microsoft/live/AuthorizationRequest.java
Expand Up @@ -311,9 +311,9 @@ public void addObserver(OAuthRequestObserver observer) {
* passed in listener when it is completed. * passed in listener when it is completed.
*/ */
public void execute() { public void execute() {
String displayType = OAuth.DisplayType.HOST.toString().toLowerCase(); String displayType = OAuth.DisplayType.TOUCH.toString().toLowerCase();
String responseType = OAuth.ResponseType.CODE.toString().toLowerCase(); String responseType = OAuth.ResponseType.CODE.toString().toLowerCase();
String theme = OAuth.ThemeType.ANDROID.toString().toLowerCase(); String theme = OAuth.ThemeType.DEFAULT.toString().toLowerCase();
String locale = Locale.getDefault().toString(); String locale = Locale.getDefault().toString();
Uri requestUri = Config.INSTANCE.getOAuthAuthorizeUri() Uri requestUri = Config.INSTANCE.getOAuthAuthorizeUri()
.buildUpon() .buildUpon()
Expand Down
2 changes: 0 additions & 2 deletions src/internal/com/microsoft/live/OAuth.java
Expand Up @@ -16,7 +16,6 @@
final class OAuth { final class OAuth {


public enum DisplayType { public enum DisplayType {
HOST,
NONE, NONE,
PAGE, PAGE,
POPUP, POPUP,
Expand Down Expand Up @@ -88,7 +87,6 @@ public enum ResponseType {
} }


public enum ThemeType { public enum ThemeType {
ANDROID,
DARK, DARK,
LIGHT, LIGHT,
DEFAULT; DEFAULT;
Expand Down

1 comment on commit 72d604d

@toota151
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.