style update and version bump

This commit is contained in:
Mohamed Zenadi 2015-03-14 23:43:38 +01:00
commit dbf23b9395
7 changed files with 83 additions and 23 deletions

View file

@ -3,14 +3,14 @@ apply from: 'copyLibs.gradle' // enable 'copyLibs.gradle' script plugin
apply plugin: 'eclipse' apply plugin: 'eclipse'
android { android {
compileSdkVersion 21 compileSdkVersion 22
buildToolsVersion "21.1.2" buildToolsVersion "21.1.2"
defaultConfig { defaultConfig {
applicationId "com.zeapo.pwdstore" applicationId "com.zeapo.pwdstore"
minSdkVersion 15 minSdkVersion 15
targetSdkVersion 21 targetSdkVersion 22
versionCode 32 versionCode 33
versionName "1.2.0.12" versionName "1.2.0.13"
} }
compileOptions { compileOptions {
@ -25,14 +25,14 @@ android {
} }
dependencies { dependencies {
compile "com.android.support:appcompat-v7:21.0.3" compile "com.android.support:appcompat-v7:22.0.0"
compile "com.android.support:recyclerview-v7:21.0.2" compile "com.android.support:recyclerview-v7:22.0.0"
//compile fileTree(dir: 'libs', include: ['*.jar']) //compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':libraries:openpgp-api-lib') compile project(':libraries:openpgp-api-lib')
compile 'org.eclipse.jgit:org.eclipse.jgit:3.6.0.201411121045-m1' compile 'org.eclipse.jgit:org.eclipse.jgit:3.6.2.201501210735-r'
compile 'org.apache.commons:commons-io:1.3.2' compile 'org.apache.commons:commons-io:1.3.2'
compile 'com.jayway.android.robotium:robotium-solo:5.2.1' compile 'com.jayway.android.robotium:robotium-solo:5.3.1'
} }
tasks.findAll { // make all tasks whose name starts with 'assemble'... tasks.findAll { // make all tasks whose name starts with 'assemble'...
it.name.startsWith 'assemble' it.name.startsWith 'assemble'

View file

@ -176,6 +176,18 @@ public class PasswordStore extends ActionBarActivity {
return super.onOptionsItemSelected(item); return super.onOptionsItemSelected(item);
} }
public void openSettings(View view) {
Intent intent;
try {
intent = new Intent(this, UserPreference.class);
startActivity(intent);
} catch (Exception e) {
System.out.println("Exception caught :(");
e.printStackTrace();
}
}
public void getClone(View view){ public void getClone(View view){
Intent intent = new Intent(this, GitActivity.class); Intent intent = new Intent(this, GitActivity.class);
intent.putExtra("Operation", GitActivity.REQUEST_CLONE); intent.putExtra("Operation", GitActivity.REQUEST_CLONE);
@ -284,6 +296,8 @@ public class PasswordStore extends ActionBarActivity {
fragmentTransaction.addToBackStack("passlist"); fragmentTransaction.addToBackStack("passlist");
getSupportActionBar().show();
fragmentTransaction.replace(R.id.main_layout, plist, "PasswordsList"); fragmentTransaction.replace(R.id.main_layout, plist, "PasswordsList");
fragmentTransaction.commit(); fragmentTransaction.commit();
} }
@ -293,6 +307,8 @@ public class PasswordStore extends ActionBarActivity {
fragmentManager.popBackStack(); fragmentManager.popBackStack();
} }
getSupportActionBar().hide();
ToCloneOrNot cloneFrag = new ToCloneOrNot(); ToCloneOrNot cloneFrag = new ToCloneOrNot();
fragmentTransaction.replace(R.id.main_layout, cloneFrag, "ToCloneOrNot"); fragmentTransaction.replace(R.id.main_layout, cloneFrag, "ToCloneOrNot");
fragmentTransaction.commit(); fragmentTransaction.commit();

View file

@ -190,7 +190,7 @@ public class PgpHandler extends ActionBarActivity implements OpenPgpServiceConne
@Override @Override
public void run() { public void run() {
Toast.makeText(PgpHandler.this, Toast.makeText(PgpHandler.this,
"onError id:" + error.getErrorId() + "\n\n" + error.getMessage(), "Error from OpenKeyChain : " + error.getMessage(),
Toast.LENGTH_LONG).show(); Toast.LENGTH_LONG).show();
Log.e(Constants.TAG, "onError getErrorId:" + error.getErrorId()); Log.e(Constants.TAG, "onError getErrorId:" + error.getErrorId());
Log.e(Constants.TAG, "onError getMessage:" + error.getMessage()); Log.e(Constants.TAG, "onError getMessage:" + error.getMessage());

View file

@ -2,7 +2,7 @@
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item> <item>
<shape android:shape="rectangle"> <shape android:shape="rectangle">
<solid android:color="@color/blue_grey_700"/> <solid android:color="@color/blue_grey_500"/>
</shape> </shape>
</item> </item>

View file

@ -8,6 +8,7 @@
android:paddingBottom="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin"
tools:context="com.zeapo.pwdstore.git.GitActivity" tools:context="com.zeapo.pwdstore.git.GitActivity"
android:background="@android:color/white"> android:background="@android:color/white">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
@ -21,7 +22,7 @@
style="@android:style/TextAppearance.Large" style="@android:style/TextAppearance.Large"
android:gravity="left" android:gravity="left"
android:paddingBottom="6dp" android:paddingBottom="6dp"
android:textColor="@color/blue_grey_700" android:textColor="@color/blue_grey_500"
android:background="@drawable/bottom_line"/> android:background="@drawable/bottom_line"/>
<RelativeLayout <RelativeLayout
@ -161,7 +162,7 @@
style="@android:style/TextAppearance.Large" style="@android:style/TextAppearance.Large"
android:gravity="left" android:gravity="left"
android:paddingBottom="6dp" android:paddingBottom="6dp"
android:textColor="@color/blue_grey_700" android:textColor="@color/blue_grey_500"
android:background="@drawable/bottom_line"/> android:background="@drawable/bottom_line"/>
<EditText <EditText

View file

@ -1,19 +1,62 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginLeft="@dimen/activity_horizontal_margin" android:background="@color/blue_grey_500"
android:layout_marginRight="@dimen/activity_horizontal_margin" android:orientation="vertical"
tools:context="com.zeapo.pwdstore.ToCloneOrNot"> tools:context="com.zeapo.pwdstore.ToCloneOrNot">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="4">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView"
android:layout_gravity="center"
android:src="@drawable/ic_launcher"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="@string/app_name"
android:layout_below="@+id/imageView"
android:layout_centerHorizontal="true"
android:textColor="@android:color/white"
android:textStyle="bold"/>
<Button
android:id="@+id/main_settings_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="openSettings"
android:background="@android:color/transparent"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="@string/action_settings"
android:textColor="@android:color/white"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_marginRight="@dimen/activity_horizontal_margin"
android:layout_marginEnd="@dimen/activity_horizontal_margin"
android:layout_marginTop="@dimen/activity_vertical_margin"
android:textStyle="bold"
android:textAllCaps="true"/>
</RelativeLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/myRectangleView" android:id="@+id/myRectangleView"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="0dp"
android:layout_gravity="center_vertical" android:layout_weight="2"
android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin"
android:background="@drawable/rectangle"> android:background="@android:color/white">
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -42,9 +85,9 @@
android:textStyle="bold" android:textStyle="bold"
android:onClick="getClone" android:onClick="getClone"
android:text="@string/clone" android:text="@string/clone"
android:layout_below="@+id/textView" android:layout_alignParentBottom="true"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" /> android:layout_alignParentEnd="true" />
</RelativeLayout> </RelativeLayout>
</FrameLayout> </LinearLayout>

View file

@ -4,7 +4,7 @@
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/blue_grey_500</item> <item name="colorPrimary">@color/blue_grey_500</item>
<item name="colorPrimaryDark">@color/blue_grey_500</item> <item name="colorPrimaryDark">@color/blue_grey_500</item>
<item name="android:windowBackground">@color/blue_grey_100</item> <item name="android:windowBackground">@color/blue_grey_50</item>
<item name="android:textColorPrimary">@color/teal_900</item> <item name="android:textColorPrimary">@color/teal_900</item>
<item name="android:textColor">@color/blue_grey_900</item> <item name="android:textColor">@color/blue_grey_900</item>
</style> </style>