Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 53 additions & 40 deletions app/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.github.mobile">

package="com.github.mobile" >

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
Expand All @@ -23,12 +22,12 @@
android:hardwareAccelerated="false"
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:theme="@style/Theme.GitHub">
android:theme="@style/Theme.GitHub" >
<activity
android:name=".ui.MainActivity"
android:theme="@style/Theme.GitHub.NavigationDrawer"
android:configChanges="orientation|keyboardHidden|screenSize"
android:hardwareAccelerated="true">
android:hardwareAccelerated="true"
android:theme="@style/Theme.GitHub.NavigationDrawer" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand All @@ -41,7 +40,7 @@
</activity>
<activity
android:name=".ui.gist.CreateGistActivity"
android:configChanges="orientation|keyboardHidden|screenSize">
android:configChanges="orientation|keyboardHidden|screenSize" >
<intent-filter>
<action android:name="android.intent.action.SEND" />

Expand All @@ -53,7 +52,7 @@
<activity
android:name=".ui.issue.IssueBrowseActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:hardwareAccelerated="true">
android:hardwareAccelerated="true" >
<intent-filter>
<action android:name="com.github.mobile.repo.issues.VIEW" />

Expand All @@ -66,7 +65,7 @@
</activity>
<activity
android:name=".ui.issue.EditIssuesFilterActivity"
android:configChanges="orientation|keyboardHidden|screenSize">
android:configChanges="orientation|keyboardHidden|screenSize" >
<intent-filter>
<action android:name="com.github.mobile.repo.issues.filter.VIEW" />

Expand All @@ -75,7 +74,7 @@
</activity>
<activity
android:name=".ui.issue.EditIssueActivity"
android:configChanges="orientation|keyboardHidden|screenSize">
android:configChanges="orientation|keyboardHidden|screenSize" >
<intent-filter>
<action android:name="com.github.mobile.repo.issues.edit.VIEW" />

Expand All @@ -87,7 +86,7 @@
android:configChanges="orientation|keyboardHidden|screenSize"
android:hardwareAccelerated="true"
android:label="@string/search_title"
android:launchMode="singleTop">
android:launchMode="singleTop" >
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
Expand All @@ -99,7 +98,7 @@
<activity
android:name=".ui.issue.FiltersViewActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:hardwareAccelerated="true">
android:hardwareAccelerated="true" >
<intent-filter>
<action android:name="com.github.mobile.repo.issues.filters.VIEW" />

Expand All @@ -108,7 +107,7 @@
</activity>
<activity
android:name=".ui.gist.GistsViewActivity"
android:configChanges="orientation|keyboardHidden|screenSize">
android:configChanges="orientation|keyboardHidden|screenSize" >
<intent-filter>
<action android:name="com.github.mobile.gists.VIEW" />

Expand All @@ -117,7 +116,7 @@
</activity>
<activity
android:name=".ui.gist.GistFilesViewActivity"
android:configChanges="orientation|keyboardHidden|screenSize">
android:configChanges="orientation|keyboardHidden|screenSize" >
<intent-filter>
<action android:name="com.github.mobile.gist.files.VIEW" />

Expand All @@ -126,7 +125,7 @@
</activity>
<activity
android:name=".ui.issue.CreateCommentActivity"
android:configChanges="orientation|keyboardHidden|screenSize">
android:configChanges="orientation|keyboardHidden|screenSize" >
<intent-filter>
<action android:name="com.github.mobile.issue.comment.create.VIEW" />

Expand All @@ -135,7 +134,7 @@
</activity>
<activity
android:name=".ui.issue.EditCommentActivity"
android:configChanges="orientation|keyboardHidden|screenSize">
android:configChanges="orientation|keyboardHidden|screenSize" >
<intent-filter>
<action android:name="com.github.mobile.issue.comment.edit.VIEW" />

Expand All @@ -144,7 +143,7 @@
</activity>
<activity
android:name=".ui.gist.CreateCommentActivity"
android:configChanges="orientation|keyboardHidden|screenSize">
android:configChanges="orientation|keyboardHidden|screenSize" >
<intent-filter>
<action android:name="com.github.mobile.gist.comment.create.VIEW" />

Expand All @@ -153,7 +152,7 @@
</activity>
<activity
android:name=".ui.gist.EditCommentActivity"
android:configChanges="orientation|keyboardHidden|screenSize">
android:configChanges="orientation|keyboardHidden|screenSize" >
<intent-filter>
<action android:name="com.github.mobile.gist.comment.edit.VIEW" />

Expand All @@ -162,7 +161,7 @@
</activity>
<activity
android:name=".ui.commit.CreateCommentActivity"
android:configChanges="orientation|keyboardHidden|screenSize">
android:configChanges="orientation|keyboardHidden|screenSize" >
<intent-filter>
<action android:name="com.github.mobile.commit.comment.create.VIEW" />

Expand All @@ -172,7 +171,7 @@
<activity
android:name=".ui.repo.RepositoryViewActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:hardwareAccelerated="true">
android:hardwareAccelerated="true" >
<intent-filter>
<action android:name="com.github.mobile.repo.VIEW" />

Expand All @@ -186,7 +185,7 @@
<activity
android:name=".ui.repo.RepositoryContributorsActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:hardwareAccelerated="true">
android:hardwareAccelerated="true" >
<intent-filter>
<action android:name="com.github.mobile.repo.contributors.VIEW" />

Expand All @@ -196,7 +195,7 @@
<activity
android:name=".ui.user.UserViewActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:hardwareAccelerated="true">
android:hardwareAccelerated="true" >
<intent-filter>
<action android:name="com.github.mobile.user.VIEW" />

Expand All @@ -205,7 +204,7 @@
</activity>
<activity
android:name=".ui.issue.IssuesViewActivity"
android:configChanges="orientation|keyboardHidden|screenSize">
android:configChanges="orientation|keyboardHidden|screenSize" >
<intent-filter>
<action android:name="com.github.mobile.issues.VIEW" />

Expand All @@ -216,7 +215,7 @@
<service
android:name=".accounts.AccountAuthenticatorService"
android:exported="false"
android:process=":auth">
android:process=":auth" >
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator" />
</intent-filter>
Expand All @@ -229,7 +228,7 @@
<activity
android:name=".accounts.LoginActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:excludeFromRecents="true">
android:excludeFromRecents="true" >

<!--
No intent-filter here! This activity is only ever launched by
Expand All @@ -239,7 +238,7 @@
<activity
android:name=".accounts.TwoFactorAuthActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:excludeFromRecents="true">
android:excludeFromRecents="true" >

<!--
No intent-filter here! This activity is only ever launched by
Expand All @@ -249,38 +248,42 @@
<activity
android:name=".ui.user.UriLauncherActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:excludeFromRecents="true">
android:excludeFromRecents="true" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />

<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />

<data
android:host="github.com"
android:scheme="http" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />

<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />

<data
android:host="github.com"
android:scheme="https" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />

<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />

<data
android:host="gist.github.com"
android:scheme="http" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />

<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />

<data
android:host="gist.github.com"
Expand All @@ -292,7 +295,7 @@
android:configChanges="orientation|keyboardHidden|screenSize"
android:hardwareAccelerated="true"
android:label="@string/search_title"
android:launchMode="singleTop">
android:launchMode="singleTop" >
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
Expand All @@ -304,7 +307,7 @@
<activity
android:name=".ui.commit.CommitCompareViewActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="@string/commit_compare_title">
android:label="@string/commit_compare_title" >
<intent-filter>
<action android:name="com.github.mobile.commits.compare.VIEW" />

Expand All @@ -313,7 +316,7 @@
</activity>
<activity
android:name=".ui.commit.CommitViewActivity"
android:configChanges="orientation|keyboardHidden|screenSize">
android:configChanges="orientation|keyboardHidden|screenSize" >
<intent-filter>
<action android:name="com.github.mobile.commits.VIEW" />

Expand All @@ -322,7 +325,7 @@
</activity>
<activity
android:name=".ui.commit.CommitFileViewActivity"
android:configChanges="orientation|keyboardHidden|screenSize">
android:configChanges="orientation|keyboardHidden|screenSize" >
<intent-filter>
<action android:name="com.github.mobile.commit.file.VIEW" />

Expand All @@ -331,7 +334,7 @@
</activity>
<activity
android:name=".ui.ref.BranchFileViewActivity"
android:configChanges="orientation|keyboardHidden|screenSize">
android:configChanges="orientation|keyboardHidden|screenSize" >
<intent-filter>
<action android:name="com.github.mobile.branch.file.VIEW" />

Expand All @@ -342,7 +345,7 @@
<service
android:name=".sync.SyncAdapterService"
android:exported="false"
android:process=":repos">
android:process=":repos" >
<intent-filter>
<action android:name="android.content.SyncAdapter" />
</intent-filter>
Expand All @@ -366,6 +369,16 @@
android:name=".ui.issue.IssueSearchSuggestionsProvider"
android:authorities="com.github.search.suggest.recent.issues"
android:exported="false" />

<receiver android:name=".NewAppWidgetProvider" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>

<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/new_app_widget_provider_info" />
</receiver>
</application>

</manifest>
49 changes: 49 additions & 0 deletions app/res/layout/new_app_widget_provider.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="@dimen/widget_margin">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="2"
android:orientation="horizontal">

<ImageView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/gravatar_icon"/>


<TextView
android:id="@+id/appwidget_text"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="9"
android:text="@string/appwidget_text"
android:textColor="#ffffff"
android:textSize="24sp"
android:textStyle="bold|italic"
android:layout_margin="8dp"
android:contentDescription="@string/appwidget_text"
android:background="#ff000000" />



</LinearLayout>


<ListView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="5"
android:background="#fff"/>





</LinearLayout>
10 changes: 10 additions & 0 deletions app/res/values-v14/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<!--
Refer to App Widget Documentation for margin information
http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout
-->
<dimen name="widget_margin">0dp</dimen>

</resources>
Loading