Skip to content
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

Pinch zoom #1466

Closed
wants to merge 9 commits into from
Closed

Pinch zoom #1466

wants to merge 9 commits into from

Conversation

tobiasKaminsky
Copy link
Contributor

@@ -59,6 +65,8 @@
private static final String KEY_TOPS = "TOPS";
private static final String KEY_HEIGHT_CELL = "HEIGHT_CELL";
private static final String KEY_EMPTY_LIST_MESSAGE = "EMPTY_LIST_MESSAGE";
private static final String GRID_COLUMNS = "gridColumns";
private ScaleGestureDetector SGD = null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since its is not a static it should be mSGD or even better mScaleGestureDetector, SGD is too enigmatic

@przybylski
Copy link
Member

mkay, review done

@LukeOwlclaw LukeOwlclaw mentioned this pull request Mar 18, 2016
}

SharedPreferences appPreferences = PreferenceManager
.getDefaultSharedPreferences(MainApp.getAppContext());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To minimize dependencies you could use getActivity() as a context. Or is there any specific reason to use application context here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I do not think so -> changed.

@przybylski
Copy link
Member

Bump, one more issue in the code.

@@ -241,6 +290,10 @@ public void onSaveInstanceState(Bundle savedInstanceState) {
savedInstanceState.putIntegerArrayList(KEY_TOPS, mTops);
savedInstanceState.putInt(KEY_HEIGHT_CELL, mHeightCell);
savedInstanceState.putString(KEY_EMPTY_LIST_MESSAGE, getEmptyViewText());

SharedPreferences.Editor editor = PreferenceManager
.getDefaultSharedPreferences(MainApp.getAppContext()).edit();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, here as well :P

@tobiasKaminsky
Copy link
Contributor Author

@przybylski finally done ;)

@danimo
Copy link
Contributor

danimo commented Jul 18, 2016

@tobiasKaminsky Can you rebase?

@jesmrec
Copy link
Collaborator

jesmrec commented Jun 26, 2019

needs to be done in a modern way

@jesmrec jesmrec closed this Jun 26, 2019
@hannesa2 hannesa2 deleted the pinchZoom branch July 12, 2021 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants