diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 453cec1c..916459b2 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -57,7 +57,14 @@ android:theme="@style/DiasporaLight.NoActionBar" android:windowSoftInputMode="adjustResize"> + + + + + + diff --git a/app/src/main/java/com/github/dfa/diaspora_android/activity/MainActivity.java b/app/src/main/java/com/github/dfa/diaspora_android/activity/MainActivity.java index c4750ce1..a75014cb 100644 --- a/app/src/main/java/com/github/dfa/diaspora_android/activity/MainActivity.java +++ b/app/src/main/java/com/github/dfa/diaspora_android/activity/MainActivity.java @@ -549,6 +549,18 @@ public class MainActivity extends ThemedActivity } else if (Intent.ACTION_SEND_MULTIPLE.equals(action) && type != null) { /* TODO: Implement and add filter to manifest */ return; + } else if ("sc_new_post".equals(action)) { + openDiasporaUrl(urls.getNewPostUrl()); + return; + } else if ("sc_nav_followed_tags".equals(action)) { + showFragment(getFragment(TagListFragment.TAG)); + return; + } else if ("sc_aspects".equals(action)) { + showFragment(getFragment(AspectListFragment.TAG)); + return; + } else if ("sc_activities".equals(action)) { + openDiasporaUrl(urls.getActivityUrl()); + return; } //Catch split screen recreation if (action != null && action.equals(Intent.ACTION_MAIN) && getTopFragment() != null) { diff --git a/app/src/main/res/drawable-hdpi/sc_aspects.png b/app/src/main/res/drawable-hdpi/sc_aspects.png new file mode 100644 index 00000000..10e89afd Binary files /dev/null and b/app/src/main/res/drawable-hdpi/sc_aspects.png differ diff --git a/app/src/main/res/drawable-hdpi/sc_edit.png b/app/src/main/res/drawable-hdpi/sc_edit.png new file mode 100644 index 00000000..112f4a98 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/sc_edit.png differ diff --git a/app/src/main/res/drawable-hdpi/sc_history.png b/app/src/main/res/drawable-hdpi/sc_history.png new file mode 100644 index 00000000..07b91442 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/sc_history.png differ diff --git a/app/src/main/res/drawable-hdpi/sc_tags.png b/app/src/main/res/drawable-hdpi/sc_tags.png new file mode 100644 index 00000000..df9b672a Binary files /dev/null and b/app/src/main/res/drawable-hdpi/sc_tags.png differ diff --git a/app/src/main/res/drawable-mdpi/sc_aspects.png b/app/src/main/res/drawable-mdpi/sc_aspects.png new file mode 100644 index 00000000..3eb981d1 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/sc_aspects.png differ diff --git a/app/src/main/res/drawable-mdpi/sc_edit.png b/app/src/main/res/drawable-mdpi/sc_edit.png new file mode 100644 index 00000000..5e2af1c2 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/sc_edit.png differ diff --git a/app/src/main/res/drawable-mdpi/sc_history.png b/app/src/main/res/drawable-mdpi/sc_history.png new file mode 100644 index 00000000..95317106 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/sc_history.png differ diff --git a/app/src/main/res/drawable-mdpi/sc_tags.png b/app/src/main/res/drawable-mdpi/sc_tags.png new file mode 100644 index 00000000..cee2e68c Binary files /dev/null and b/app/src/main/res/drawable-mdpi/sc_tags.png differ diff --git a/app/src/main/res/drawable-xhdpi/sc_aspects.png b/app/src/main/res/drawable-xhdpi/sc_aspects.png new file mode 100644 index 00000000..e7a3b896 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/sc_aspects.png differ diff --git a/app/src/main/res/drawable-xhdpi/sc_edit.png b/app/src/main/res/drawable-xhdpi/sc_edit.png new file mode 100644 index 00000000..321208ca Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/sc_edit.png differ diff --git a/app/src/main/res/drawable-xhdpi/sc_history.png b/app/src/main/res/drawable-xhdpi/sc_history.png new file mode 100644 index 00000000..5b8bbafb Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/sc_history.png differ diff --git a/app/src/main/res/drawable-xhdpi/sc_tags.png b/app/src/main/res/drawable-xhdpi/sc_tags.png new file mode 100644 index 00000000..ae9f4e1e Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/sc_tags.png differ diff --git a/app/src/main/res/drawable-xxhdpi/sc_aspects.png b/app/src/main/res/drawable-xxhdpi/sc_aspects.png new file mode 100644 index 00000000..885676ea Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/sc_aspects.png differ diff --git a/app/src/main/res/drawable-xxhdpi/sc_edit.png b/app/src/main/res/drawable-xxhdpi/sc_edit.png new file mode 100644 index 00000000..37b6ff75 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/sc_edit.png differ diff --git a/app/src/main/res/drawable-xxhdpi/sc_history.png b/app/src/main/res/drawable-xxhdpi/sc_history.png new file mode 100644 index 00000000..dc9a0043 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/sc_history.png differ diff --git a/app/src/main/res/drawable-xxhdpi/sc_tags.png b/app/src/main/res/drawable-xxhdpi/sc_tags.png new file mode 100644 index 00000000..d1fa6956 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/sc_tags.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/sc_aspects.png b/app/src/main/res/drawable-xxxhdpi/sc_aspects.png new file mode 100644 index 00000000..b5db929b Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/sc_aspects.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/sc_edit.png b/app/src/main/res/drawable-xxxhdpi/sc_edit.png new file mode 100644 index 00000000..c91953ae Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/sc_edit.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/sc_history.png b/app/src/main/res/drawable-xxxhdpi/sc_history.png new file mode 100644 index 00000000..acd506f6 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/sc_history.png differ diff --git a/app/src/main/res/drawable-xxxhdpi/sc_tags.png b/app/src/main/res/drawable-xxxhdpi/sc_tags.png new file mode 100644 index 00000000..8f0119d6 Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/sc_tags.png differ diff --git a/app/src/main/res/drawable/ic_mode_edit_black_48px.xml b/app/src/main/res/drawable/ic_mode_edit_black_48px.xml new file mode 100644 index 00000000..7575f1a5 --- /dev/null +++ b/app/src/main/res/drawable/ic_mode_edit_black_48px.xml @@ -0,0 +1,4 @@ + + + diff --git a/app/src/main/res/xml-v25/shortcuts.xml b/app/src/main/res/xml-v25/shortcuts.xml new file mode 100755 index 00000000..353d3a58 --- /dev/null +++ b/app/src/main/res/xml-v25/shortcuts.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build.gradle b/build.gradle index d549a863..9d32794b 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:3.0.0' + classpath 'com.android.tools.build:gradle:3.0.1' classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' if (project.enable_plugin_kotlin) { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$version_plugin_kotlin" diff --git a/sc_edit.svg b/sc_edit.svg new file mode 100644 index 00000000..b5074d99 --- /dev/null +++ b/sc_edit.svg @@ -0,0 +1,386 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + +