From 2abab7c25693b3f93dd6ef650d38f9842b7f0681 Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Sat, 2 Sep 2017 00:51:02 +0800 Subject: [PATCH] added media timeline shortcut --- twidere/src/main/AndroidManifest.xml | 11 ++++++ ...TimelineTimelineShortcutCreatorActivity.kt | 36 +++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 twidere/src/main/kotlin/org/mariotaku/twidere/activity/shortcut/UserMediaTimelineTimelineShortcutCreatorActivity.kt diff --git a/twidere/src/main/AndroidManifest.xml b/twidere/src/main/AndroidManifest.xml index 11833f95a..b03d9f7dc 100644 --- a/twidere/src/main/AndroidManifest.xml +++ b/twidere/src/main/AndroidManifest.xml @@ -422,6 +422,17 @@ + + + + + + + + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package org.mariotaku.twidere.activity.shortcut + +import org.mariotaku.twidere.model.ParcelableUser +import org.mariotaku.twidere.model.UserKey +import org.mariotaku.twidere.util.shortcut.ShortcutCreator + +/** + * Created by mariotaku on 2017/8/27. + */ + +class UserMediaTimelineTimelineShortcutCreatorActivity : AbsUserRelatedShortcutCreatorActivity() { + + override fun onUserSelected(accountKey: UserKey?, user: ParcelableUser) { + addShortcut { ShortcutCreator.userMediaTimeline(this, accountKey, user) } + } + +} \ No newline at end of file