Skip to content

Commit

Permalink
optimize for V1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirtyDegreesRay committed Sep 5, 2017
1 parent 1c5dd79 commit ed0dade
Show file tree
Hide file tree
Showing 26 changed files with 16 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public class NameParser {

public NameParser(@Nullable String url) {
if (!StringUtils.isBlank(url)) {
//FIXME enterprise judge
// boolean isEnterprise = LinkParserHelper.isEnterprise(url);
// if (isEnterprise) {
// url = url.replace("api/v3/", "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public void onSuccess(HttpResponse<Repository> response) {
mView.showSuccessToast(getString(R.string.forked));
RepositoryActivity.show(getContext(), response.body());
} else {
//TODO tip error
mView.showErrorToast(getString(R.string.fork_failed));
}
mView.getProgressDialog(getLoadTip()).dismiss();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected CharSequence getActivityTitle() {
private void buildApp(MaterialAboutCard.Builder appBuilder, final Context context){
appBuilder.addItem(new MaterialAboutTitleItem.Builder()
.text(getString(R.string.app_name))
.desc("© 2017 ThirtyDegreesRay")
.desc(getString(R.string.app_copyright))
.icon(R.mipmap.logo)
.build());
appBuilder.addItem(new MaterialAboutActionItem.Builder()
Expand All @@ -92,7 +92,7 @@ public void onClick() {
.setOnClickAction(new MaterialAboutItemOnClickAction() {
@Override
public void onClick() {
RepositoryActivity.show(context, "ThirtyDegreesRay", "OpenHub");
RepositoryActivity.show(context, getString(R.string.author_login_id), getString(R.string.app_name));
}
})
.build());
Expand All @@ -107,7 +107,7 @@ private void buildAuthor(MaterialAboutCard.Builder appBuilder, final Context con
.setOnClickAction(new MaterialAboutItemOnClickAction() {
@Override
public void onClick() {
ProfileActivity.show(context, "ThirtyDegreesRay");
ProfileActivity.show(context, getString(R.string.author_login_id));
}
})
.build());
Expand All @@ -117,7 +117,7 @@ public void onClick() {
.setOnClickAction(new MaterialAboutItemOnClickAction() {
@Override
public void onClick() {
ProfileActivity.show(context, "ThirtyDegreesRay");
ProfileActivity.show(context, getString(R.string.author_login_id));
}
})
.build());
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,6 @@
<string name="publish_time">发布时间:</string>
<string name="upgrade_info">升级信息:</string>
<string name="no_upgrade_tip">你已经安装了最新版本</string>
<string name="fork_failed">添加到我的版本库失败</string>

</resources>
5 changes: 4 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,10 @@
<string name="version" >Version</string>
<string name="source_code" >Source code</string>
<string name="author" >Author</string>
<string name="author_name" translatable="false">ThirtyDegreesRay</string>
<string name="author_name" translatable="false">Rays Yu</string>
<string name="author_location" translatable="false">NanJing,China</string>
<string name="author_login_id" translatable="false">ThirtyDegreesRay</string>
<string name="app_copyright" translatable="false">© 2017 ThirtyDegreesRay</string>
<string name="follow_on_github" >Follow on GitHub</string>
<string name="email" >Email</string>
<string name="auth_email_address" translatable="false">rays.yuz@gmail.com</string>
Expand All @@ -184,5 +186,6 @@
<string name="publish_time">Publish time:</string>
<string name="upgrade_info">Upgrade info:</string>
<string name="no_upgrade_tip">You have installed the latest version.</string>
<string name="fork_failed">Fork failed</string>

</resources>
4 changes: 3 additions & 1 deletion app/src/main/res/values/theme_dark.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<color name="dark_color_primary">#2D3035</color>
<color name="dark_color_primary_dark">#26282C</color>
<color name="dark_color_accent">@color/material_amber_accent_700</color>
<color name="dark_color_accent">@color/material_green_accent_700</color>
<color name="dark_color_window_background">#22252A</color>
<color name="dark_text_color_primary">@color/material_light_white</color>
<color name="dark_text_color_secondary">@color/material_grey_500</color>
Expand Down Expand Up @@ -229,6 +229,8 @@
<item name="mal_color_primary">@color/dark_text_color_primary</item>
<item name="mal_color_secondary">@color/dark_text_color_secondary</item>
<item name="mal_card_background">@color/dark_card_background</item>
<item name="alertDialogTheme">@style/DialogThemeDark.Green</item>
<item name="android:alertDialogTheme">@style/DialogThemeDark.Green</item>
</style>

</resources>
4 changes: 3 additions & 1 deletion app/src/main/res/values/theme_light.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<color name="light_color_primary">@color/material_indigo_500</color>
<color name="light_color_primary_dark">@color/material_indigo_700</color>
<color name="light_color_accent">@color/material_indigo_accent_700</color>
<color name="light_color_accent">@color/material_green_accent_700</color>
<color name="light_window_background">@color/material_light_white</color>
<color name="light_icon_color">@color/material_light_black</color>
<color name="light_card_background">@color/material_white</color>
Expand Down Expand Up @@ -206,6 +206,8 @@
<item name="mal_color_primary">@color/light_text_color_primary</item>
<item name="mal_color_secondary">@color/light_text_color_secondary</item>
<item name="mal_card_background">@color/light_card_background</item>
<item name="alertDialogTheme">@style/DialogThemeLight.Green</item>
<item name="android:alertDialogTheme">@style/DialogThemeLight.Green</item>
</style>

</resources>

0 comments on commit ed0dade

Please sign in to comment.