Skip to content
Snippets Groups Projects
Commit 4e097862 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Updated gitignore and removed unnecessary strings, made activity use app name

parent c8148e94
No related branches found
No related tags found
No related merge requests found
......@@ -8,5 +8,5 @@ local.properties
.idea/*
gradle*
gradle.properties
QuasselDroid/version.properties
*/version.properties
deploy.sh
......@@ -13,7 +13,7 @@
<activity
android:name=".MainActivity"
android:label="@string/title_activity_main"
android:label="@string/app_name"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
......
......@@ -243,8 +243,14 @@ public class MainActivity extends AppCompatActivity {
private void switchBuffer(int bufferId) {
this.bufferId = bufferId;
Buffer buffer = handler.getClient().getBuffer(this.bufferId);
adapter.setMessageList(handler.getClient().getBacklogManager().get(this.bufferId));
toolbar.setTitle(handler.getClient().getBuffer(this.bufferId).getName());
if (buffer == null) {
toolbar.setTitle(R.string.app_name);
} else {
toolbar.setTitle(buffer.getName());
}
drawer.setSelection(this.bufferId, false);
drawer.closeDrawer();
}
......
<resources>
<string name="app_name">QuasselDroid-ng</string>
<string name="title_activity_main">MainActivity</string>
<string name="title_activity_main2">Main2Activity</string>
<string name="app_name">QuasselDroid</string>
<string name="action_settings">Settings</string>
<string name="default_port">4242</string>
</resources>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment