Update email and github
This commit is contained in:
parent
bfc8dfbc50
commit
484df44582
6 changed files with 68 additions and 16 deletions
|
|
@ -32,10 +32,11 @@ import de.psdev.licensesdialog.LicensesDialog;
|
||||||
@SuppressWarnings("FieldCanBeLocal")
|
@SuppressWarnings("FieldCanBeLocal")
|
||||||
public class AboutActivity extends AbsBaseActivity implements View.OnClickListener {
|
public class AboutActivity extends AbsBaseActivity implements View.OnClickListener {
|
||||||
|
|
||||||
|
private static String GITHUB = "https://github.com/kabouzeid/Phonograph";
|
||||||
|
|
||||||
private static String GOOGLE_PLUS = "https://google.com/+KarimAbouZeid23697";
|
private static String GOOGLE_PLUS = "https://google.com/+KarimAbouZeid23697";
|
||||||
private static String TWITTER = "https://twitter.com/karim23697";
|
private static String TWITTER = "https://twitter.com/karim23697";
|
||||||
private static String GITHUB = "https://github.com/kabouzeid";
|
private static String WEBSITE = "https://kabouzeid.com/";
|
||||||
private static String WEBSITE = "http://kabouzeid.com/";
|
|
||||||
|
|
||||||
private static String GOOGLE_PLUS_COMMUNITY = "https://plus.google.com/u/0/communities/106227738496107108513";
|
private static String GOOGLE_PLUS_COMMUNITY = "https://plus.google.com/u/0/communities/106227738496107108513";
|
||||||
private static String TRANSLATE = "https://phonograph.oneskyapp.com/collaboration/project?id=26521";
|
private static String TRANSLATE = "https://phonograph.oneskyapp.com/collaboration/project?id=26521";
|
||||||
|
|
@ -61,6 +62,8 @@ public class AboutActivity extends AbsBaseActivity implements View.OnClickListen
|
||||||
LinearLayout intro;
|
LinearLayout intro;
|
||||||
@BindView(R.id.licenses)
|
@BindView(R.id.licenses)
|
||||||
LinearLayout licenses;
|
LinearLayout licenses;
|
||||||
|
@BindView(R.id.write_an_email)
|
||||||
|
LinearLayout writeAnEmail;
|
||||||
@BindView(R.id.add_to_google_plus_circles)
|
@BindView(R.id.add_to_google_plus_circles)
|
||||||
LinearLayout addToGooglePlusCircles;
|
LinearLayout addToGooglePlusCircles;
|
||||||
@BindView(R.id.follow_on_twitter)
|
@BindView(R.id.follow_on_twitter)
|
||||||
|
|
@ -132,6 +135,7 @@ public class AboutActivity extends AbsBaseActivity implements View.OnClickListen
|
||||||
forkOnGitHub.setOnClickListener(this);
|
forkOnGitHub.setOnClickListener(this);
|
||||||
visitWebsite.setOnClickListener(this);
|
visitWebsite.setOnClickListener(this);
|
||||||
reportBugs.setOnClickListener(this);
|
reportBugs.setOnClickListener(this);
|
||||||
|
writeAnEmail.setOnClickListener(this);
|
||||||
joinGooglePlusCommunity.setOnClickListener(this);
|
joinGooglePlusCommunity.setOnClickListener(this);
|
||||||
translate.setOnClickListener(this);
|
translate.setOnClickListener(this);
|
||||||
rateOnGooglePlay.setOnClickListener(this);
|
rateOnGooglePlay.setOnClickListener(this);
|
||||||
|
|
@ -180,6 +184,12 @@ public class AboutActivity extends AbsBaseActivity implements View.OnClickListen
|
||||||
openUrl(WEBSITE);
|
openUrl(WEBSITE);
|
||||||
} else if (v == reportBugs) {
|
} else if (v == reportBugs) {
|
||||||
startActivity(new Intent(this, BugReportActivity.class));
|
startActivity(new Intent(this, BugReportActivity.class));
|
||||||
|
} else if (v == writeAnEmail) {
|
||||||
|
Intent intent = new Intent(Intent.ACTION_SENDTO);
|
||||||
|
intent.setData(Uri.parse("mailto:contact@kabouzeid.com"));
|
||||||
|
intent.putExtra(Intent.EXTRA_EMAIL, "contact@kabouzeid.com");
|
||||||
|
intent.putExtra(Intent.EXTRA_SUBJECT, "Phonograph");
|
||||||
|
startActivity(Intent.createChooser(intent, "E-Mail"));
|
||||||
} else if (v == joinGooglePlusCommunity) {
|
} else if (v == joinGooglePlusCommunity) {
|
||||||
openUrl(GOOGLE_PLUS_COMMUNITY);
|
openUrl(GOOGLE_PLUS_COMMUNITY);
|
||||||
} else if (v == translate) {
|
} else if (v == translate) {
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ public class BugReportActivity extends AbsThemeActivity {
|
||||||
@BindView(R.id.button_send)
|
@BindView(R.id.button_send)
|
||||||
FloatingActionButton sendFab;
|
FloatingActionButton sendFab;
|
||||||
|
|
||||||
private static final String ISSUE_TRACKER_LINK = "https://github.com/kabouzeid/phonograph-issue-tracker";
|
private static final String ISSUE_TRACKER_LINK = "https://github.com/kabouzeid/Phonograph";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
|
@ -274,7 +274,7 @@ public class BugReportActivity extends AbsThemeActivity {
|
||||||
onSaveExtraInfo(extraInfo);
|
onSaveExtraInfo(extraInfo);
|
||||||
|
|
||||||
Report report = new Report(bugTitle, bugDescription, deviceInfo, extraInfo);
|
Report report = new Report(bugTitle, bugDescription, deviceInfo, extraInfo);
|
||||||
GithubTarget target = new GithubTarget("kabouzeid", "phonograph-issue-tracker");
|
GithubTarget target = new GithubTarget("kabouzeid", "Phonograph");
|
||||||
|
|
||||||
ReportIssueAsyncTask.report(this, report, target, login);
|
ReportIssueAsyncTask.report(this, report, target, login);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
10
app/src/main/res/drawable/ic_email_white_24dp.xml
Normal file
10
app/src/main/res/drawable/ic_email_white_24dp.xml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportHeight="24.0"
|
||||||
|
android:viewportWidth="24.0"
|
||||||
|
android:width="24dp">
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:pathData="M20,4L4,4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,6c0,-1.1 -0.9,-2 -2,-2zM20,8l-8,5 -8,-5L4,6l8,5 8,-5v2z" />
|
||||||
|
</vector>
|
||||||
|
|
@ -144,6 +144,37 @@
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/fork_on_git_hub"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/rectSelector"
|
||||||
|
android:clickable="true"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:minHeight="@dimen/md_listitem_height"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:paddingLeft="16dp"
|
||||||
|
android:paddingRight="16dp">
|
||||||
|
|
||||||
|
<com.kabouzeid.gramophone.views.IconImageView
|
||||||
|
android:id="@+id/icon_github"
|
||||||
|
android:layout_width="24dp"
|
||||||
|
android:layout_height="24dp"
|
||||||
|
app:srcCompat="@drawable/ic_github_circle_white_24dp"
|
||||||
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginLeft="32dp"
|
||||||
|
android:layout_marginStart="32dp"
|
||||||
|
android:paddingBottom="8dp"
|
||||||
|
android:paddingTop="8dp"
|
||||||
|
android:text="@string/fork_on_git_hub"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/licenses"
|
android:id="@+id/licenses"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,37 @@
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/write_an_email"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/rectSelector"
|
||||||
|
android:clickable="true"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:minHeight="@dimen/md_listitem_height"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:paddingLeft="16dp"
|
||||||
|
android:paddingRight="16dp">
|
||||||
|
|
||||||
|
<com.kabouzeid.gramophone.views.IconImageView
|
||||||
|
android:id="@+id/icon_email"
|
||||||
|
android:layout_width="24dp"
|
||||||
|
android:layout_height="24dp"
|
||||||
|
app:srcCompat="@drawable/ic_email_white_24dp"
|
||||||
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginLeft="32dp"
|
||||||
|
android:layout_marginStart="32dp"
|
||||||
|
android:paddingBottom="8dp"
|
||||||
|
android:paddingTop="8dp"
|
||||||
|
android:text="@string/write_an_email"
|
||||||
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/add_to_google_plus_circles"
|
android:id="@+id/add_to_google_plus_circles"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
@ -130,37 +161,6 @@
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/fork_on_git_hub"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:background="?attr/rectSelector"
|
|
||||||
android:clickable="true"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:minHeight="@dimen/md_listitem_height"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:paddingLeft="16dp"
|
|
||||||
android:paddingRight="16dp">
|
|
||||||
|
|
||||||
<com.kabouzeid.gramophone.views.IconImageView
|
|
||||||
android:id="@+id/icon_github"
|
|
||||||
android:layout_width="24dp"
|
|
||||||
android:layout_height="24dp"
|
|
||||||
app:srcCompat="@drawable/ic_github_circle_white_24dp"
|
|
||||||
tools:ignore="ContentDescription,UnusedAttribute" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginLeft="32dp"
|
|
||||||
android:layout_marginStart="32dp"
|
|
||||||
android:paddingBottom="8dp"
|
|
||||||
android:paddingTop="8dp"
|
|
||||||
android:text="@string/fork_on_git_hub"
|
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/visit_website"
|
android:id="@+id/visit_website"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
|
||||||
|
|
@ -215,6 +215,7 @@
|
||||||
<string name="version">Version</string>
|
<string name="version">Version</string>
|
||||||
<string name="application">Application</string>
|
<string name="application">Application</string>
|
||||||
<string name="author">Author</string>
|
<string name="author">Author</string>
|
||||||
|
<string name="write_an_email">Write an email</string>
|
||||||
<string name="add_to_google_plus_circles">Add to Google Plus circles</string>
|
<string name="add_to_google_plus_circles">Add to Google Plus circles</string>
|
||||||
<string name="follow_on_twitter">Follow on Twitter</string>
|
<string name="follow_on_twitter">Follow on Twitter</string>
|
||||||
<string name="fork_on_git_hub">Fork on GitHub</string>
|
<string name="fork_on_git_hub">Fork on GitHub</string>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue