Skip to content

Commit

Permalink
ya change the theme and fix the fc in no Marshmalle device
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthonyeef committed Nov 8, 2015
1 parent 6c90237 commit 126be46
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion app/app.iml
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" scope="TEST" name="multidex-instrumentation-1.0.1" level="project" />
<orderEntry type="library" exported="" name="butterknife-7.0.1" level="project" />
<orderEntry type="library" exported="" name="library-1.0.18" level="project" />
<orderEntry type="library" exported="" name="eventbus-2.4.0" level="project" />
<orderEntry type="library" exported="" name="library-1.0.18" level="project" />
<orderEntry type="library" exported="" name="picasso-2.4.0" level="project" />
<orderEntry type="library" exported="" name="cardview-v7-23.0.1" level="project" />
<orderEntry type="library" exported="" name="sdk-1.3.4" level="project" />
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "0.9.0"
versionName "0.9.1"

manifestPlaceholders = [UMENG_CHANNEL_VALUE: "GitHub"]
multiDexEnabled true
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@

<application
android:allowBackup="true"
android:name=".controller.AppController"
android:name=".MyApplication"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
<activity
android:name=".ui.UIHome"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar" >
android:theme="@style/AppTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand All @@ -29,7 +29,7 @@
<activity
android:name=".ui.UIStatus"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar" />
android:theme="@style/AppTheme" />
</application>

<meta-data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.anthonyeef.fanfoudaily.controller;
package io.github.anthonyeef.fanfoudaily;

import android.app.Application;
import android.content.Context;
Expand All @@ -14,11 +14,11 @@
/**
* Created by anthonyeef on 10/13/15.
*/
public class AppController extends Application {
public class MyApplication extends Application {

public static final String TAG = Application.class.getSimpleName();

private static AppController mInstance;
private static MyApplication mInstance;
private RequestQueue mRequestQueue;
private static Date mDate;

Expand All @@ -30,7 +30,7 @@ public void onCreate() {
mInstance = this;
}

public static synchronized AppController getInstance() {
public static synchronized MyApplication getInstance() {
return mInstance;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import io.github.anthonyeef.fanfoudaily.Utils.LogUtils;
import io.github.anthonyeef.fanfoudaily.adapter.FanfouAdapter;
import io.github.anthonyeef.fanfoudaily.callbacks.RecyclerItemClickListener;
import io.github.anthonyeef.fanfoudaily.controller.AppController;
import io.github.anthonyeef.fanfoudaily.MyApplication;
import io.github.anthonyeef.fanfoudaily.extras.FanfouUtils;
import io.github.anthonyeef.fanfoudaily.model.Date;
import io.github.anthonyeef.fanfoudaily.model.Fanfou;
Expand Down Expand Up @@ -97,8 +97,8 @@ public void onDestroy() {
}

public void onEvent(Date date) {
AppController.setDate(date);
fetchData(AppController.getDate().getDate());
MyApplication.setDate(date);
fetchData(MyApplication.getDate().getDate());
}
@Override
public void onSaveInstanceState(Bundle outState) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;

import io.github.anthonyeef.fanfoudaily.controller.AppController;
import io.github.anthonyeef.fanfoudaily.MyApplication;

/**
* Created by anthonyeef on 10/17/15.
Expand All @@ -12,7 +12,7 @@ public class VolleySingleton {
private static VolleySingleton instance = null;
private RequestQueue mRequestQueue;
private VolleySingleton() {
mRequestQueue = Volley.newRequestQueue(AppController.getAppContext());
mRequestQueue = Volley.newRequestQueue(MyApplication.getAppContext());
}
public static VolleySingleton getInstance() {
if (instance == null) {
Expand Down

0 comments on commit 126be46

Please sign in to comment.