Skip to content

Writing settings#3243

Merged
kwonye merged 75 commits intofeature/site-settings-reviewfrom
feature/2887-writing-settings
Nov 3, 2015
Merged

Writing settings#3243
kwonye merged 75 commits intofeature/site-settings-reviewfrom
feature/2887-writing-settings

Conversation

@tonyr59h
Copy link
Copy Markdown
Contributor

Self-hosted sites have an API limitation with the default post category and format. Because of this those are stored locally as preferences. WP.com sites work as expected.

What's in this PR:

  • Location setting saved/restored, used in post editor
  • Username/password for self-hosted sites only
  • Default post category, not saved remotely on self-hosted
  • Default post format, not saved remotely on self-hosted
  • Related Posts with previews, .com only

To test, change each of the following on both self-hosted and .com sites. Be sure to test test app-web changes and web->app changes for both:

  • Title
  • Tagline
  • Language
  • Location
  • Default Category
  • Default Format
  • Related Posts

…-settings

Conflicts:
	WordPress/src/main/res/values/strings.xml
…alues, and loading cached settings on a background thread.
@maxme maxme modified the milestones: 4.8, 4.7 Oct 28, 2015
@kwonye
Copy link
Copy Markdown
Contributor

kwonye commented Oct 29, 2015

On initial loading of settings on a site, the Default Category/Default Format do not show up (sometimes both, sometimes just one). I have to click the cell and select it for it to show up.

screenshot_20151029-084013

screenshot_20151029-084033

@tonyr59h
Copy link
Copy Markdown
Contributor Author

All fixed up 👍

@kwonye
Copy link
Copy Markdown
Contributor

kwonye commented Oct 30, 2015

  • Still having issues of Default Category/Default Format not showing up everytime I open settings.
    screenshot_20151030-120549
  • Also, Default Category has a default_category option that I don't think belongs there.
    screenshot_20151030-120557
  • And Default Format doesn't auto-select to Standard.
  • Standard Format is at the bottom
    screenshot_20151030-120600

@tonyr59h
Copy link
Copy Markdown
Contributor Author

Default Category has a default_category option that I don't think belongs there

Heh, that was an accident during testing. It's definitely a category I added to your site 😛

@tonyr59h
Copy link
Copy Markdown
Contributor Author

tonyr59h commented Nov 2, 2015

Still having issues of Default Category/Default Format not showing up everytime I open settings

Just noticed you were on a self-hosted site. Per conversation with Matt and Sergio we will only be showing default category and post format for WP.com sites.

@tonyr59h
Copy link
Copy Markdown
Contributor Author

tonyr59h commented Nov 3, 2015

Just addressed a few more minor bugs/edge cases. Ready for another review. Note: not going to have a designer sign off on this PR since it won't be merged into develop. I'll ping Matt after discussion settings have been merged into the review branch so everything can be taken care of before merging.

@kwonye
Copy link
Copy Markdown
Contributor

kwonye commented Nov 3, 2015

Crash when initial location request happens. Doesn't seem to be in the code you've added, so let me know if you think I should create a separate issue for it.

11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime: FATAL EXCEPTION: main
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime: Process: org.wordpress.android, PID: 22196
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime: java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=2, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {org.wordpress.android/org.wordpress.android.ui.posts.EditPostActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at android.app.ActivityThread.deliverResults(ActivityThread.java:3699)
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at android.app.ActivityThread.handleSendResult(ActivityThread.java:3742)
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at android.app.ActivityThread.-wrap16(ActivityThread.java)
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393)
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:102)
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:148)
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5417)
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at org.wordpress.android.ui.posts.EditPostSettingsFragment.showLocationSearch(EditPostSettingsFragment.java:670)
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at org.wordpress.android.ui.posts.EditPostActivity.onRequestPermissionsResult(EditPostActivity.java:432)
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:6553)
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at android.app.Activity.dispatchActivityResult(Activity.java:6432)
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at android.app.ActivityThread.deliverResults(ActivityThread.java:3695)
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at android.app.ActivityThread.handleSendResult(ActivityThread.java:3742) 
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at android.app.ActivityThread.-wrap16(ActivityThread.java) 
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393) 
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:102) 
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:148) 
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5417) 
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method) 
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
11-02 21:38:05.173 22196-22196/org.wordpress.android E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 

@kwonye
Copy link
Copy Markdown
Contributor

kwonye commented Nov 3, 2015

Location post crash addressed :shipit:

kwonye added a commit that referenced this pull request Nov 3, 2015
@kwonye kwonye merged commit 364ecfd into feature/site-settings-review Nov 3, 2015
@kwonye kwonye deleted the feature/2887-writing-settings branch November 3, 2015 21:43
@tonyr59h tonyr59h mentioned this pull request Nov 3, 2015
@kwonye kwonye restored the feature/2887-writing-settings branch November 4, 2015 23:22
@kwonye kwonye deleted the feature/2887-writing-settings branch November 4, 2015 23:24
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.

3 participants