-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added reports navdrawer entry and divided visibility options into sub…
…categories as suggested by gsantner Merge PR #110 from DfA/divide-visibility-options Reports Navdrawer Item reworked set context of webview in onAttach method of BrowserFragment Merge branch 'master' of github.com:Diaspora-for-Android/diaspora-android
- Loading branch information
1 parent
e6f16fc
commit 8e324d8
Showing
10 changed files
with
132 additions
and
53 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24"> | ||
|
||
<path | ||
android:fillColor="#000000" | ||
android:pathData="M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 | ||
0-1.3-.58-1.3-1.3 0-.72 .58 -1.3 1.3-1.3 .72 0 1.3 .58 1.3 1.3 0 .72-.58 1.3-1.3 | ||
1.3zm1-4.3h-2V7h2v6z" /> | ||
<path | ||
android:pathData="M0 0h24v24H0z" /> | ||
</vector> |
This file contains 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 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 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
119 changes: 69 additions & 50 deletions
119
app/src/main/res/xml/preferences__sub_navslider_vis.xml
This file contains 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 |
---|---|---|
@@ -1,54 +1,73 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<com.github.dfa.diaspora_android.ui.theme.ThemedPreferenceCategory | ||
android:key="@string/pref_key__title__visibility_nav" | ||
android:title="@string/pref_cat__visibility_nav_items"> | ||
|
||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="true" | ||
android:key="@string/pref_key__visibility_nav__profile" | ||
android:title="@string/nav_profile"/> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="true" | ||
android:key="@string/pref_key__visibility_nav__followed_tags" | ||
android:title="@string/nav_followed_tags"/> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="true" | ||
android:key="@string/pref_key__visibility_nav__aspects" | ||
android:title="@string/nav_aspects"/> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="false" | ||
android:key="@string/pref_key__visibility_nav__contacts" | ||
android:title="@string/nav_contacts" /> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="false" | ||
android:key="@string/pref_key__visibility_nav__activities" | ||
android:title="@string/nav_activities"/> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="true" | ||
android:key="@string/pref_key__visibility_nav__liked" | ||
android:title="@string/nav_liked"/> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="true" | ||
android:key="@string/pref_key__visibility_nav__commented" | ||
android:title="@string/nav_commented"/> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="false" | ||
android:key="@string/pref_key__visibility_nav__mentions" | ||
android:title="@string/nav_mentions"/> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="false" | ||
android:key="@string/pref_key__visibility_nav__public_activities" | ||
android:title="@string/nav_public_activities"/> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="false" | ||
android:key="@string/pref_key__visibility_nav__exit" | ||
android:title="@string/action_exit_app"/> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="true" | ||
android:key="@string/pref_key__visibility_nav__help_license" | ||
android:title="@string/nav_help_license"/> | ||
|
||
</com.github.dfa.diaspora_android.ui.theme.ThemedPreferenceCategory> | ||
<!-- User --> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedPreferenceCategory | ||
android:title="@string/pref_cat__visibility_nav_items__user"> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="true" | ||
android:key="@string/pref_key__visibility_nav__profile" | ||
android:title="@string/nav_profile"/> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="true" | ||
android:key="@string/pref_key__visibility_nav__followed_tags" | ||
android:title="@string/nav_followed_tags"/> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="true" | ||
android:key="@string/pref_key__visibility_nav__aspects" | ||
android:title="@string/nav_aspects"/> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="false" | ||
android:key="@string/pref_key__visibility_nav__contacts" | ||
android:title="@string/nav_contacts" /> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="false" | ||
android:key="@string/pref_key__visibility_nav__activities" | ||
android:title="@string/nav_activities"/> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="true" | ||
android:key="@string/pref_key__visibility_nav__liked" | ||
android:title="@string/nav_liked"/> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="true" | ||
android:key="@string/pref_key__visibility_nav__commented" | ||
android:title="@string/nav_commented"/> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="false" | ||
android:key="@string/pref_key__visibility_nav__mentions" | ||
android:title="@string/nav_mentions"/> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="false" | ||
android:key="@string/pref_key__visibility_nav__public_activities" | ||
android:title="@string/nav_public_activities"/> | ||
|
||
</com.github.dfa.diaspora_android.ui.theme.ThemedPreferenceCategory> | ||
|
||
|
||
<!-- General --> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedPreferenceCategory | ||
android:title="@string/pref_cat__visibility_nav_items__general"> | ||
|
||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="false" | ||
android:key="@string/pref_key__visibility_nav__exit" | ||
android:title="@string/action_exit_app"/> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="true" | ||
android:key="@string/pref_key__visibility_nav__help_license" | ||
android:title="@string/nav_help_license"/> | ||
|
||
</com.github.dfa.diaspora_android.ui.theme.ThemedPreferenceCategory> | ||
|
||
|
||
<!-- Admin --> | ||
<com.github.dfa.diaspora_android.ui.theme.ThemedPreferenceCategory | ||
android:title="@string/pref_cat__visibility_nav_items__admin"> | ||
|
||
<com.github.dfa.diaspora_android.ui.theme.ThemedVisibilityPreference | ||
android:defaultValue="false" | ||
android:key="@string/pref_key__visibility_nav__reports" | ||
android:title="@string/nav_reports"/> | ||
|
||
</com.github.dfa.diaspora_android.ui.theme.ThemedPreferenceCategory> | ||
</PreferenceScreen> |