Skip to content

Commit

Permalink
extracting string to string resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kosh committed Oct 31, 2016
1 parent 6b639ab commit 82ce5fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ protected MainPresenter(@NonNull MainMvp.View view) {

@SuppressWarnings("ConstantConditions")
@Override public void onModuleChanged(@NonNull FragmentManager fragmentManager, @MainMvp.NavigationType int type) {
Logger.e(type);
Fragment currentVisible = getVisibleFragment(fragmentManager);
DeviceAppsView deviceAppsView = (DeviceAppsView) getFragmentByTag(fragmentManager, DeviceAppsView.TAG);
FoldersView foldersView = (FoldersView) getFragmentByTag(fragmentManager, FoldersView.TAG);
Expand Down Expand Up @@ -185,8 +184,8 @@ protected MainPresenter(@NonNull MainMvp.View view) {
.setType("message/rfc822")
.setSubject(mainView.getString(R.string.sharing_backup))
.setChooserTitle(mainView.getString(R.string.share_my_backup))
.setHtmlText("<a href='" + Uri.decode(builder.toString()) + "'>Click here to restore my backup.</a>")
.startChooser();
.setHtmlText("<a href='" + Uri.decode(builder.toString()) + "'>" + mainView.getString(R.string.click_here_html) +
"</a></br><b>~" + mainView.getString(R.string.app_name) + "</b>").startChooser();
}

@Override public boolean onNavigationItemSelected(@NonNull MenuItem item) {
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
<string name="share_my_backup">Share My Backup</string>
<string name="no_user">Please login first.</string>
<string name="confirm_message">Are you sure?</string>
<string name="sharing_backup">Hello there!, I\'m sharing my back with you.</string>
<string name="sharing_backup">Hello there!, I\'m sharing my FA backup with you.</string>
<string name="restore_function_not_available">Restore functionality is not available</string>
<string name="click_here_html">Click here to restore my FA backup.</string>
</resources>

0 comments on commit 82ce5fd

Please sign in to comment.