Updated Jabit, which should fix a bug where you can't send messages

This commit is contained in:
Christian Basler 2016-02-03 07:42:21 +01:00
parent 3d7c1a504e
commit d682df4cdb
4 changed files with 44 additions and 5 deletions

View File

@ -9,7 +9,7 @@ android {
applicationId "ch.dissem.apps.abit"
minSdkVersion 19
targetSdkVersion 23
versionCode 5
versionCode 6
versionName "1.0-beta"
}
signingConfigs {
@ -29,7 +29,7 @@ android {
}
}
ext.jabitVersion = '1.0.1-SNAPSHOT'
ext.jabitVersion = '1.0.1'
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.1.1'

View File

@ -19,6 +19,7 @@ package ch.dissem.apps.abit;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@ -113,7 +114,20 @@ public class AddressListFragment extends AbstractItemListFragment<BitmessageAddr
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_address_list, container, false);
View view = inflater.inflate(R.layout.fragment_address_list, container, false);
FloatingActionButton fab = (FloatingActionButton) view.findViewById(R.id.fab_add_contact);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
// Intent intent = new Intent(getActivity().getApplicationContext(), ComposeMessageActivity.class);
// intent.putExtra(ComposeMessageActivity.EXTRA_IDENTITY, Singleton.getIdentity(getActivity()));
// startActivity(intent);
// TODO
}
});
return view;
}
@Override

View File

@ -0,0 +1,25 @@
<!--
~ Copyright 2016 Christian Basler
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#DEFFFFFF"
android:pathData="M15,12c2.21,0 4,-1.79 4,-4s-1.79,-4 -4,-4 -4,1.79 -4,4 1.79,4 4,4zm-9,-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9,4c-2.67,0 -8,1.34 -8,4v2h16v-2c0,-2.66 -5.33,-4 -8,-4z"/>
</vector>

View File

@ -18,10 +18,10 @@
android:layout_alignParentBottom="true"/>
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab_compose_message"
android:id="@+id/fab_add_contact"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_action_compose_message"
android:src="@drawable/ic_action_add_contact"
app:elevation="8dp"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"