From 0d1fbb5201a3f14cdf2280d3754fca55c5534188 Mon Sep 17 00:00:00 2001 From: Jorge Reina Date: Fri, 19 Jun 2015 22:01:15 -0400 Subject: [PATCH] added acces to profile settings --- app/res/layout/profile_editor.xml | 45 +++++++++++++++++++ .../java/com/github/mobile/ProfileEditor.java | 18 ++++++++ 2 files changed, 63 insertions(+) create mode 100644 app/res/layout/profile_editor.xml create mode 100644 app/src/main/java/com/github/mobile/ProfileEditor.java diff --git a/app/res/layout/profile_editor.xml b/app/res/layout/profile_editor.xml new file mode 100644 index 000000000..ebee389a0 --- /dev/null +++ b/app/res/layout/profile_editor.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/github/mobile/ProfileEditor.java b/app/src/main/java/com/github/mobile/ProfileEditor.java new file mode 100644 index 000000000..9e54a52b8 --- /dev/null +++ b/app/src/main/java/com/github/mobile/ProfileEditor.java @@ -0,0 +1,18 @@ +package com.github.mobile; + +import com.github.mobile.ui.WebView; + +/** + * Created by c4q-jorgereina on 6/19/15. + */ +public class ProfileWebEditor { + + + public ProfileWebEditor() { + String url = "https://github.com/settings/profile"; + WebView view = this.findById(R.id.webView); + view.getSettings().setJavaScriptEnabled(true); + view.loadUrl(url); + + } +}