Updated copyright.
Added device default theme for progress dialog. Updated bit.ly credential dialog layout.
This commit is contained in:
parent
1cfaa3b523
commit
09d9d6b9fd
11 changed files with 62 additions and 53 deletions
8
.idea/copyright/Erik_C__Thauvin.xml
generated
Normal file
8
.idea/copyright/Erik_C__Thauvin.xml
generated
Normal file
|
@ -0,0 +1,8 @@
|
|||
<component name="CopyrightManager">
|
||||
<copyright>
|
||||
<option name="allowReplaceKeyword" value="Erik C. Thauvin" />
|
||||
<option name="keyword" value="Copyright (c)" />
|
||||
<option name="myName" value="Erik C. Thauvin" />
|
||||
<option name="notice" value="@(#)&#36;file.fileName Copyright (c) 2011-&#36;today.year Erik C. Thauvin (http://erik.thauvin.net/) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of the authors nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." />
|
||||
</copyright>
|
||||
</component>
|
10
.idea/copyright/profiles_settings.xml
generated
10
.idea/copyright/profiles_settings.xml
generated
|
@ -1,3 +1,11 @@
|
|||
<component name="CopyrightManager">
|
||||
<settings default="" />
|
||||
<settings default="Erik C. Thauvin">
|
||||
<module2copyright>
|
||||
<element module="Java Source" copyright="Erik C. Thauvin" />
|
||||
</module2copyright>
|
||||
<LanguageOptions name="JAVA">
|
||||
<option name="fileTypeOverride" value="3" />
|
||||
<option name="addBlankAfter" value="false" />
|
||||
</LanguageOptions>
|
||||
</settings>
|
||||
</component>
|
3
.idea/scopes/Java_Source.xml
generated
Normal file
3
.idea/scopes/Java_Source.xml
generated
Normal file
|
@ -0,0 +1,3 @@
|
|||
<component name="DependencyValidationManager">
|
||||
<scope name="Java Source" pattern="file[app]:src/main/java//*.java" />
|
||||
</component>
|
|
@ -6,7 +6,7 @@ android {
|
|||
|
||||
defaultConfig {
|
||||
applicationId "net.thauvin.erik.android.emaily"
|
||||
minSdkVersion 11
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 22
|
||||
versionCode 2
|
||||
versionName "1.1b9"
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="net.thauvin.erik.android.emaily">
|
||||
package="net.thauvin.erik.android.emaily">
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
|
||||
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
|
||||
<uses-permission android:name="android.permission.USE_CREDENTIALS"/>
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
|
@ -16,20 +16,20 @@
|
|||
android:label="@string/app_name"
|
||||
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.SEND" />
|
||||
<action android:name="android.intent.action.SEND"/>
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.DEFAULT"/>
|
||||
|
||||
<data android:mimeType="text/plain" />
|
||||
<data android:mimeType="text/plain"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".EmailyPrefs"
|
||||
android:label="@string/app_name">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* @(#)Emaily.java
|
||||
* @(#)BitlyCredsDialog.java
|
||||
*
|
||||
* Copyright (c) 2012 Erik C. Thauvin (http://erik.thauvin.net/)
|
||||
* Copyright (c) 2011-2015 Erik C. Thauvin (http://erik.thauvin.net/)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -30,9 +30,6 @@
|
|||
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
*/
|
||||
package net.thauvin.erik.android.emaily;
|
||||
|
||||
|
@ -51,7 +48,6 @@ import android.widget.TextView;
|
|||
* The <code>BitlyCredsDialog</code> class implements a bit.ly credential dialog.
|
||||
*
|
||||
* @author <a href="mailto:erik@thauvin.net">Erik C. Thauvin</a>
|
||||
* @version $Revision$
|
||||
* @created March 28, 2012
|
||||
* @since 1.0
|
||||
*/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* @(#)Emaily.java
|
||||
*
|
||||
* Copyright (c) 2011-2012 Erik C. Thauvin (http://erik.thauvin.net/)
|
||||
* Copyright (c) 2011-2015 Erik C. Thauvin (http://erik.thauvin.net/)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -30,9 +30,6 @@
|
|||
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
*/
|
||||
package net.thauvin.erik.android.emaily;
|
||||
|
||||
|
@ -84,7 +81,6 @@ import com.google.api.services.urlshortener.model.Url;
|
|||
* The <code>Emaily</code> class implements a URL shortener intent.
|
||||
*
|
||||
* @author <a href="mailto:erik@thauvin.net">Erik C. Thauvin</a>
|
||||
* @version $Revision$
|
||||
* @created Oct 11, 2011
|
||||
* @since 1.0
|
||||
*/
|
||||
|
@ -349,7 +345,7 @@ public class Emaily extends Activity
|
|||
*/
|
||||
private class EmailyTask extends AsyncTask<Intent, Void, EmailyResult>
|
||||
{
|
||||
private final ProgressDialog dialog = new ProgressDialog(Emaily.this);
|
||||
private final ProgressDialog dialog = new ProgressDialog(Emaily.this, AlertDialog.THEME_DEVICE_DEFAULT_DARK);
|
||||
private final String username;
|
||||
private final String keytoken;
|
||||
private final boolean isGoogl;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* @(#)EmailyPrefs.java
|
||||
*
|
||||
* Copyright (c) 2011-2014 Erik C. Thauvin (http://erik.thauvin.net/)
|
||||
* Copyright (c) 2011-2015 Erik C. Thauvin (http://erik.thauvin.net/)
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -30,9 +30,6 @@
|
|||
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
*/
|
||||
package net.thauvin.erik.android.emaily;
|
||||
|
||||
|
@ -54,7 +51,6 @@ import android.preference.PreferenceScreen;
|
|||
* The <code>EmailyPrefs</code> class implements a preferences screen.
|
||||
*
|
||||
* @author <a href="mailto:erik@thauvin.net">Erik C. Thauvin</a>
|
||||
* @version $Revision$
|
||||
* @created Oct 11, 2011
|
||||
* @since 1.0
|
||||
*/
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="20dip">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/bit_username_view"
|
||||
|
@ -10,9 +11,9 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="20dip"
|
||||
android:layout_marginRight="20dip"
|
||||
android:gravity="left"
|
||||
android:gravity="start"
|
||||
android:text="@string/prefs_bitly_creds_username"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/bitly_username_edit"
|
||||
|
@ -24,7 +25,7 @@
|
|||
android:inputType="text"
|
||||
android:key="@string/prefs_key_bitly_username"
|
||||
android:scrollHorizontally="true"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/bitly_apikey_view"
|
||||
|
@ -32,9 +33,10 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="20dip"
|
||||
android:layout_marginRight="20dip"
|
||||
android:gravity="left"
|
||||
android:gravity="start"
|
||||
android:text="@string/prefs_bitly_creds_apikey"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/bitly_apikey_edit"
|
||||
|
@ -46,7 +48,7 @@
|
|||
android:inputType="text"
|
||||
android:key="@string/prefs_key_bitly_apikey"
|
||||
android:scrollHorizontally="true"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/bitly_text_fld"
|
||||
|
@ -58,7 +60,7 @@
|
|||
android:text="@string/prefs_bitly_creds_noapi"
|
||||
android:textColor="#eda712"
|
||||
android:clickable="true"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" >
|
||||
android:textAppearance="?android:attr/textAppearanceMedium">
|
||||
</TextView>
|
||||
|
||||
</LinearLayout>
|
|
@ -7,7 +7,7 @@
|
|||
<string name="alert_notfound">Sorry. No applications can perform this action.</string>
|
||||
<string name="alert_notfound_clip">Sorry. No applications can perform this action. The shortened url has been copied to the clipboard.</string>
|
||||
<string name="app_name">Emaily</string>
|
||||
<string name="dialog_accounts_title">Select a Google account</string>
|
||||
<string name="dialog_accounts_title">Select a Google account to shorten with</string>
|
||||
<string name="prefs_about_title">About</string>
|
||||
<string name="prefs_bitly_creds_apikey">API Key</string>
|
||||
<string name="prefs_bitly_creds_cancel">Cancel</string>
|
||||
|
@ -19,7 +19,7 @@
|
|||
<string name="prefs_bitly_creds_url">http://bitly.com/a/your_api_key/</string>
|
||||
<string name="prefs_bitly_creds_username">Username</string>
|
||||
<string name="prefs_bitly_title">bit.ly</string>
|
||||
<string name="prefs_copyright">© 2012–14 Erik C. Thauvin</string>
|
||||
<string name="prefs_copyright">© 2012–15 Erik C. Thauvin</string>
|
||||
<string name="prefs_feedback_subject">%1$s %2$s %3$s (%4$s %5$s, %6$s)</string>
|
||||
<string name="prefs_feedback_summary">Send email, please check Help first…</string>
|
||||
<string name="prefs_feedback_title">Feedback</string>
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<PreferenceCategory android:title="@string/prefs_googl_title" >
|
||||
<PreferenceCategory android:title="@string/prefs_googl_title">
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="@string/prefs_key_googl_chkbox"
|
||||
android:title="@string/prefs_googl_chkbox_title" />
|
||||
android:title="@string/prefs_googl_chkbox_title"/>
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="@string/prefs_bitly_title" >
|
||||
<PreferenceCategory android:title="@string/prefs_bitly_title">
|
||||
<net.thauvin.erik.android.emaily.BitlyCredsDialog
|
||||
android:dialogLayout="@layout/bitlycreds"
|
||||
android:dialogTitle="@string/prefs_bitly_creds_dialog_title"
|
||||
|
@ -15,37 +15,37 @@
|
|||
android:negativeButtonText="@string/prefs_bitly_creds_cancel"
|
||||
android:positiveButtonText="@string/prefs_bitly_creds_ok"
|
||||
android:summary="@string/prefs_bitly_creds_summary"
|
||||
android:title="@string/prefs_bitly_creds_title" >
|
||||
android:title="@string/prefs_bitly_creds_title">
|
||||
</net.thauvin.erik.android.emaily.BitlyCredsDialog>
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="@string/prefs_html_title" >
|
||||
<PreferenceCategory android:title="@string/prefs_html_title">
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="@string/prefs_key_html_chkbox"
|
||||
android:title="@string/prefs_html_chkbox_title" />
|
||||
android:title="@string/prefs_html_chkbox_title"/>
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory android:title="@string/prefs_about_title" >
|
||||
<PreferenceCategory android:title="@string/prefs_about_title">
|
||||
<Preference
|
||||
android:enabled="false"
|
||||
android:key="@string/prefs_key_version"
|
||||
android:singleLine="true"
|
||||
android:summary="@string/prefs_copyright"
|
||||
android:title="@string/prefs_version_title" />
|
||||
android:title="@string/prefs_version_title"/>
|
||||
|
||||
<PreferenceScreen
|
||||
android:summary="@string/prefs_help_summary"
|
||||
android:title="@string/prefs_help_title" >
|
||||
android:title="@string/prefs_help_title">
|
||||
<intent
|
||||
android:action="android.intent.action.VIEW"
|
||||
android:data="@string/prefs_help_url" />
|
||||
android:data="@string/prefs_help_url"/>
|
||||
</PreferenceScreen>
|
||||
<PreferenceScreen
|
||||
android:key="@string/prefs_key_feedback"
|
||||
android:summary="@string/prefs_feedback_summary"
|
||||
android:title="@string/prefs_feedback_title" >
|
||||
android:title="@string/prefs_feedback_title">
|
||||
<intent
|
||||
android:action="android.intent.action.VIEW"
|
||||
android:data="@string/prefs_feedback_url" />
|
||||
android:data="@string/prefs_feedback_url"/>
|
||||
</PreferenceScreen>
|
||||
</PreferenceCategory>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue