-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Pinch zoom #1466
Conversation
@@ -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; |
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.
since its is not a static it should be mSGD or even better mScaleGestureDetector, SGD is too enigmatic
mkay, review done |
} | ||
|
||
SharedPreferences appPreferences = PreferenceManager | ||
.getDefaultSharedPreferences(MainApp.getAppContext()); |
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.
To minimize dependencies you could use getActivity() as a context. Or is there any specific reason to use application context here ?
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.
No, I do not think so -> changed.
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(); |
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.
Well, here as well :P
@przybylski finally done ;) |
@tobiasKaminsky Can you rebase? |
needs to be done in a modern way |
#1402