-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix for issue #1037 #1086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Fix for issue #1037 #1086
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,13 @@ | |
import android.os.Bundle; | ||
import android.preference.PreferenceManager; | ||
import android.support.annotation.NonNull; | ||
import android.support.v4.content.ContextCompat; | ||
import android.support.v7.app.AlertDialog; | ||
import android.text.Editable; | ||
import android.text.SpannableString; | ||
import android.text.TextPaint; | ||
import android.text.TextWatcher; | ||
import android.text.style.UnderlineSpan; | ||
import android.view.LayoutInflater; | ||
import android.view.Menu; | ||
import android.view.MenuInflater; | ||
|
@@ -36,21 +40,23 @@ | |
import butterknife.OnClick; | ||
import butterknife.OnItemSelected; | ||
import butterknife.OnTouch; | ||
import dagger.android.support.DaggerFragment; | ||
import fr.free.nrw.commons.R; | ||
import fr.free.nrw.commons.Utils; | ||
import fr.free.nrw.commons.di.CommonsDaggerSupportFragment; | ||
import fr.free.nrw.commons.settings.Prefs; | ||
import fr.free.nrw.commons.ui.widget.HtmlTextView; | ||
import timber.log.Timber; | ||
|
||
import static android.view.MotionEvent.ACTION_DOWN; | ||
import static android.view.MotionEvent.ACTION_UP; | ||
|
||
public class SingleUploadFragment extends CommonsDaggerSupportFragment { | ||
public class SingleUploadFragment extends DaggerFragment { | ||
|
||
@BindView(R.id.titleEdit) EditText titleEdit; | ||
@BindView(R.id.descEdit) EditText descEdit; | ||
@BindView(R.id.titleDescButton) Button titleDescButton; | ||
@BindView(R.id.share_license_summary) TextView licenseSummaryView; | ||
@BindView(R.id.share_license_summary) HtmlTextView licenseSummaryView; | ||
|
||
@BindView(R.id.licenseSpinner) Spinner licenseSpinner; | ||
|
||
@Inject @Named("default_preferences") SharedPreferences prefs; | ||
|
@@ -240,9 +246,15 @@ boolean descriptionInfo(View view, MotionEvent motionEvent) { | |
} | ||
return false; | ||
} | ||
/* | ||
|
||
|
||
|
||
|
||
*/ | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For what this empty lines stands for? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm removing it. |
||
private void setLicenseSummary(String license) { | ||
licenseSummaryView.setText(getString(R.string.share_license_summary, getString(Utils.licenseNameFor(license)))); | ||
licenseSummaryView.setHtmlText(getString(R.string.share_license_summary, getString(Utils.licenseNameFor(license)))); | ||
} | ||
|
||
@Override | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you changed this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't changed it, it's automatically changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please undo it. Usage of
DaggerFragment
would cause crashes.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure I will remove it @maskaravivek
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maskaravivek, I had deleted the previous Commons forked repository due to some bugs and forked again. Can I make another PR as through this I'm unable to change my files? Please help @maskaravivek !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I make another PR that is in that I just have changed "upload/SingleUploadFragment.java" file as I had deleted the previously forked repo, I'm not also able to change this file directly from this PR.
@maskaravivek, @neslihanturan Please help!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or I have one solution for it, May you edit this @maskaravivek , @neslihanturan?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mithlesh4257 you can fork it again, and make a fresh PR don't worry. I am closing this. Please follow this document before https://github.com/commons-app/apps-android-commons/wiki/Setting-up-dev-enviroment by changing "maskaravivek" username with yours. And please make sure all of the steps we discussed here are covered before preparing PR. Make sure you checked your commits and added meaningful commit messages before pushing.
Besides, if you want to leave this task for someone else to handle, please notify us.