From 425bc857cfe094d8b9be5815030ef3e6b0cf173d Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Wed, 7 Aug 2019 23:28:02 +0800 Subject: Refactored all the other classes to support multi user. Clearing the app data is required before launching the app. --- app/src/main/res/layout/activity_comment.xml | 2 +- app/src/main/res/layout/activity_filtered_posts.xml | 2 +- app/src/main/res/layout/activity_login.xml | 2 +- app/src/main/res/layout/activity_post_image.xml | 2 +- app/src/main/res/layout/activity_post_link.xml | 2 +- app/src/main/res/layout/activity_post_text.xml | 2 +- app/src/main/res/layout/activity_post_video.xml | 2 +- app/src/main/res/layout/activity_rules.xml | 2 +- app/src/main/res/layout/activity_search.xml | 2 +- app/src/main/res/layout/activity_search_result.xml | 2 +- app/src/main/res/layout/activity_search_subreddits_result.xml | 2 +- app/src/main/res/layout/activity_subreddit_selection.xml | 2 +- app/src/main/res/layout/activity_subscribed_thing_listing.xml | 4 ++-- app/src/main/res/layout/activity_view_image.xml | 2 +- app/src/main/res/layout/activity_view_post_detail.xml | 2 +- app/src/main/res/layout/activity_view_subreddit_detail.xml | 2 +- app/src/main/res/layout/activity_view_user_detail.xml | 2 +- app/src/main/res/layout/activity_view_video.xml | 2 +- app/src/main/res/layout/app_bar_main.xml | 2 +- app/src/main/res/layout/content_main.xml | 2 +- app/src/main/res/layout/content_view_subreddit_detail.xml | 2 +- app/src/main/res/layout/content_view_user_detail.xml | 2 +- app/src/main/res/layout/fragment_comments_listing.xml | 2 +- app/src/main/res/layout/fragment_flair_bottom_sheet.xml | 2 +- app/src/main/res/layout/fragment_followed_users_listing.xml | 2 +- app/src/main/res/layout/fragment_post.xml | 2 +- app/src/main/res/layout/fragment_subreddit_listing.xml | 2 +- app/src/main/res/layout/fragment_subscribed_subreddits_listing.xml | 2 +- app/src/main/res/layout/fragment_user_listing.xml | 2 +- app/src/main/res/menu/main_activity.xml | 2 +- app/src/main/res/menu/menu_search.xml | 2 +- app/src/main/res/menu/search_activity.xml | 2 +- app/src/main/res/menu/view_subreddit_detail_activity.xml | 2 +- app/src/main/res/menu/view_user_detail_activity.xml | 2 +- 34 files changed, 35 insertions(+), 35 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/activity_comment.xml b/app/src/main/res/layout/activity_comment.xml index b664e845..65abe106 100644 --- a/app/src/main/res/layout/activity_comment.xml +++ b/app/src/main/res/layout/activity_comment.xml @@ -5,7 +5,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/coordinator_layout_comment_activity" - tools:context=".CommentActivity"> + tools:application=".CommentActivity"> + tools:application=".FilteredPostsActivity"> + tools:application="ml.docilealligator.infinityforreddit.LoginActivity"> + tools:application=".PostImageActivity"> + tools:application=".PostTextActivity"> + tools:application=".PostTextActivity"> + tools:application=".PostImageActivity"> + tools:application=".RulesActivity"> + tools:application=".SearchActivity"> + tools:application=".SearchResultActivity" /> \ No newline at end of file diff --git a/app/src/main/res/layout/activity_search_subreddits_result.xml b/app/src/main/res/layout/activity_search_subreddits_result.xml index 6dc3ca23..3b536bb8 100644 --- a/app/src/main/res/layout/activity_search_subreddits_result.xml +++ b/app/src/main/res/layout/activity_search_subreddits_result.xml @@ -4,7 +4,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - tools:context=".SearchSubredditsResultActivity"> + tools:application=".SearchSubredditsResultActivity"> + tools:application=".SubredditSelectionActivity"> + tools:application=".SubscribedThingListingActivity"> + tools:application=".SubscribedThingListingActivity" /> \ No newline at end of file diff --git a/app/src/main/res/layout/activity_view_image.xml b/app/src/main/res/layout/activity_view_image.xml index 3ffcb7ff..ddf04698 100644 --- a/app/src/main/res/layout/activity_view_image.xml +++ b/app/src/main/res/layout/activity_view_image.xml @@ -6,7 +6,7 @@ android:layout_height="match_parent" android:id="@+id/parent_relative_layout_view_image_activity" android:background="@android:color/black" - tools:context="ml.docilealligator.infinityforreddit.ViewImageActivity"> + tools:application="ml.docilealligator.infinityforreddit.ViewImageActivity"> + tools:application=".ViewPostDetailActivity"> + tools:application=".ViewSubredditDetailActivity"> + tools:application=".ViewUserDetailActivity"> + tools:application="ml.docilealligator.infinityforreddit.ViewVideoActivity"> + tools:application="ml.docilealligator.infinityforreddit.MainActivity"> diff --git a/app/src/main/res/layout/content_view_subreddit_detail.xml b/app/src/main/res/layout/content_view_subreddit_detail.xml index 2b27dd3c..f5ae24e3 100644 --- a/app/src/main/res/layout/content_view_subreddit_detail.xml +++ b/app/src/main/res/layout/content_view_subreddit_detail.xml @@ -6,5 +6,5 @@ android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_behavior="@string/appbar_scrolling_view_behavior" - tools:context=".ViewSubredditDetailActivity" + tools:application=".ViewSubredditDetailActivity" tools:showIn="@layout/activity_view_subreddit_detail" /> diff --git a/app/src/main/res/layout/content_view_user_detail.xml b/app/src/main/res/layout/content_view_user_detail.xml index c708ae9e..119bf6ad 100644 --- a/app/src/main/res/layout/content_view_user_detail.xml +++ b/app/src/main/res/layout/content_view_user_detail.xml @@ -6,5 +6,5 @@ android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_behavior="@string/appbar_scrolling_view_behavior" - tools:context=".ViewUserDetailActivity" + tools:application=".ViewUserDetailActivity" tools:showIn="@layout/activity_view_user_detail" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_comments_listing.xml b/app/src/main/res/layout/fragment_comments_listing.xml index a347e7af..e0741118 100644 --- a/app/src/main/res/layout/fragment_comments_listing.xml +++ b/app/src/main/res/layout/fragment_comments_listing.xml @@ -5,7 +5,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/coordinator_layout_comments_listing_fragment" - tools:context="ml.docilealligator.infinityforreddit.CommentsListingFragment"> + tools:application="ml.docilealligator.infinityforreddit.CommentsListingFragment"> + tools:application=".FlairBottomSheetFragment"> + tools:application=".FollowedUsersListingFragment"> + tools:application="ml.docilealligator.infinityforreddit.PostFragment"> + tools:application=".SubredditListingFragment"> + tools:application=".SubscribedSubredditsListingFragment"> + tools:application=".UserListingFragment"> + tools:application="ml.docilealligator.infinityforreddit.MainActivity"> + tools:application="ml.docilealligator.infinityforreddit.SearchResultActivity"> + tools:application="ml.docilealligator.infinityforreddit.SearchResultActivity"> + tools:application="ml.docilealligator.infinityforreddit.ViewSubredditDetailActivity"> + tools:application="ml.docilealligator.infinityforreddit.ViewUserDetailActivity">