Skip to content
This repository was archived by the owner on Oct 27, 2024. It is now read-only.

Commit 94f4ee7

Browse files
author
Ashwini Kumar
committed
Removed unused resources and reformatted code base
1 parent ebbeccc commit 94f4ee7

File tree

12 files changed

+18
-87
lines changed

12 files changed

+18
-87
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest
3-
package="com.esoxjem.movieguide"
4-
xmlns:android="http://schemas.android.com/apk/res/android">
3+
xmlns:android="http://schemas.android.com/apk/res/android"
4+
package="com.esoxjem.movieguide">
55

66
<uses-permission android:name="android.permission.INTERNET"/>
77

app/src/main/java/com/esoxjem/movieguide/network/NetworkModule.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@ Cache provideCache(Context context)
8787
return new Cache(cacheDir, cacheSize);
8888
}
8989

90-
@Provides
91-
@Singleton
92-
RequestHandler provideRequestHandler(OkHttpClient okHttpClient)
93-
{
94-
return new RequestHandler(okHttpClient);
95-
}
9690

9791
@Provides
9892
@Singleton

app/src/main/java/com/esoxjem/movieguide/network/RequestGenerator.java

Lines changed: 0 additions & 34 deletions
This file was deleted.

app/src/main/java/com/esoxjem/movieguide/network/RequestHandler.java

Lines changed: 0 additions & 30 deletions
This file was deleted.

app/src/main/res/layout-sw600dp-land/activity_main.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77

88
<include layout="@layout/toolbar"/>
99

10-
<LinearLayout android:layout_width="match_parent"
11-
android:layout_height="match_parent"
12-
android:divider="?android:attr/dividerHorizontal"
13-
android:orientation="horizontal">
10+
<LinearLayout
11+
android:layout_width="match_parent"
12+
android:layout_height="match_parent"
13+
android:divider="?android:attr/dividerHorizontal"
14+
android:orientation="horizontal">
1415

1516
<fragment
1617
android:id="@+id/fragment_listing"
@@ -25,6 +26,6 @@
2526
android:layout_width="0dp"
2627
android:layout_height="match_parent"
2728
android:layout_weight="3"/>
28-
</LinearLayout>
29+
</LinearLayout>
2930

3031
</LinearLayout>

app/src/main/res/layout-sw600dp-land/fragment_movie_details.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<android.support.design.widget.CoordinatorLayout
2-
android:id="@+id/main_content"
32
xmlns:android="http://schemas.android.com/apk/res/android"
43
xmlns:app="http://schemas.android.com/apk/res-auto"
54
xmlns:tools="http://schemas.android.com/tools"
5+
android:id="@+id/main_content"
66
android:layout_width="match_parent"
77
android:layout_height="match_parent"
88
android:layout_alignParentTop="true">

app/src/main/res/layout/fragment_movie_details.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<android.support.design.widget.CoordinatorLayout
2-
android:id="@+id/main_content"
32
xmlns:android="http://schemas.android.com/apk/res/android"
43
xmlns:app="http://schemas.android.com/apk/res-auto"
54
xmlns:tools="http://schemas.android.com/tools"
5+
android:id="@+id/main_content"
66
android:layout_width="match_parent"
77
android:layout_height="match_parent"
88
android:layout_alignParentTop="true">

app/src/main/res/layout/fragment_movies.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<android.support.v7.widget.RecyclerView
88
android:id="@+id/movies_listing"
9-
android:scrollbars="vertical"
109
android:layout_width="match_parent"
11-
android:layout_height="match_parent"/>
10+
android:layout_height="match_parent"
11+
android:scrollbars="vertical"/>
1212
</FrameLayout>

app/src/main/res/layout/movie_grid_item.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<FrameLayout
2-
android:id="@+id/movie_container"
32
xmlns:android="http://schemas.android.com/apk/res/android"
43
xmlns:tools="http://schemas.android.com/tools"
4+
android:id="@+id/movie_container"
55
android:layout_width="match_parent"
66
android:layout_height="320dp"
77
android:layout_gravity="center"
8-
android:clickable="true"
98
android:layout_margin="1dp"
9+
android:clickable="true"
1010
android:foreground="?attr/selectableItemBackground">
1111

1212
<ImageView

app/src/main/res/layout/review.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<LinearLayout
3-
android:id="@+id/review"
43
xmlns:android="http://schemas.android.com/apk/res/android"
54
xmlns:tools="http://schemas.android.com/tools"
5+
android:id="@+id/review"
66
android:layout_width="match_parent"
77
android:layout_height="match_parent"
88
android:layout_marginBottom="16dp"

app/src/main/res/layout/toolbar.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<android.support.v7.widget.Toolbar
3-
android:id="@+id/toolbar"
43
xmlns:android="http://schemas.android.com/apk/res/android"
54
xmlns:app="http://schemas.android.com/apk/res-auto"
5+
android:id="@+id/toolbar"
66
android:layout_width="match_parent"
77
android:layout_height="?attr/actionBarSize"
88
android:layout_alignParentTop="true"

app/src/main/res/layout/video.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
android:id="@+id/video_thumb"
1111
android:layout_width="150dp"
1212
android:layout_height="150dp"
13+
android:layout_marginBottom="16dp"
1314
android:layout_marginRight="16dp"
14-
android:layout_marginTop="16dp"
15-
android:layout_marginBottom="16dp"/>
15+
android:layout_marginTop="16dp"/>
1616

1717
</FrameLayout>

0 commit comments

Comments
 (0)