Skip to content

Commit

Permalink
Fixe FragmentNewsfeed layout, and disable Sync for safety
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdibaha committed Jul 7, 2015
1 parent 2c7af32 commit 1b0f189
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ android {
buildToolsVersion "21.1.2"

lintOptions {
abortOnError false
disable 'InvalidPackage'
}

defaultConfig {
Expand Down Expand Up @@ -52,4 +52,5 @@ dependencies {
compile 'com.mcxiaoke.volley:library:1.0.1' // Volley Library (handles all network request)
compile 'com.github.paolorotolo:appintro:2.0.0'
compile 'co.trikita:log:1.1.1'
compile 'com.jakewharton:butterknife:7.0.1'
}
13 changes: 13 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@

# Add any project specific keep options here:

# Butterknife rules as advised by official website
-keep class butterknife.** { *; }
-dontwarn butterknife.internal.**
-keep class **$$ViewBinder { *; }

-keepclasseswithmembernames class * {
@butterknife.* <fields>;
}

-keepclasseswithmembernames class * {
@butterknife.* <methods>;
}

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void onCreate(Bundle savedInstanceState) {
initToolbar();
initTabs();

setupSyncadapter();
//setupSyncadapter();
}

private void initToolbar(){
Expand Down Expand Up @@ -127,7 +127,7 @@ private void setupSyncadapter() {
mAccount,
AUTHORITY,
b,
60*10); // every 10 minutes, cause : battery leaks
60);
}
Log.d("Sync Complete");
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_newsfeed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swipe_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="match_parent">

<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerView"
Expand Down

0 comments on commit 1b0f189

Please sign in to comment.