Skip to content

Commit

Permalink
Update app icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
uncleleonfan committed Nov 19, 2016
1 parent 7b6a74c commit 1dc9b78
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/funchat"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

import cn.bmob.v3.Bmob;

import static android.app.ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND;

/**
* 创建者: Leon
* 创建时间: 2016/10/16 9:51
Expand Down Expand Up @@ -148,7 +150,7 @@ public boolean isForeground() {
return false;
}
for (ActivityManager.RunningAppProcessInfo info :runningAppProcesses) {
if (info.processName.equals(getPackageName()) && info.importance == ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND) {
if (info.processName.equals(getPackageName()) && info.importance == IMPORTANCE_FOREGROUND) {
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected void init() {
mTitle.setText(getString(R.string.messages));

mRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
mConversationAdapter = new ConversationAdapter(getContext(), mConversationPresenter.getConversations());
mConversationAdapter = new ConversationAdapter(getContext(), mConversationPresenter.getConversations());
mRecyclerView.setAdapter(mConversationAdapter);

mConversationPresenter.loadAllConversations();
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/drawable/search_friend_selector.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:drawable="@mipmap/search_pres" android:state_pressed="true"/>
<item android:drawable="@mipmap/search_normal" />
<item android:drawable="@mipmap/search_pres" android:state_pressed="true"/>
<item android:drawable="@mipmap/search_normal" />

</selector>
Binary file added app/src/main/res/mipmap-xhdpi/funchat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Binary file not shown.
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<resources>
<string name="app_name">QQDemo</string>
<string name="app_name">泛聊</string>
<string name="user_name">用户名</string>
<string name="user_password">密码</string>
<string name="login">登录</string>
Expand Down
24 changes: 12 additions & 12 deletions app/src/main/res/xml/bottombar_tabs.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<tabs>
<tab
id="@id/conversations"
icon="@mipmap/ic_conversation_selected_2"
title="@string/messages"/>
<tab
id="@id/contacts"
icon="@mipmap/ic_contact_selected_2"
title="@string/contacts"/>
<tab
id="@id/dynamic"
icon="@mipmap/ic_plugin_selected_2"
title="@string/dynamic"/>
<tab
id="@id/conversations"
icon="@mipmap/ic_conversation_selected_2"
title="@string/messages"/>
<tab
id="@id/contacts"
icon="@mipmap/ic_contact_selected_2"
title="@string/contacts"/>
<tab
id="@id/dynamic"
icon="@mipmap/ic_plugin_selected_2"
title="@string/dynamic"/>
</tabs>

0 comments on commit 1dc9b78

Please sign in to comment.