Skip to content

Commit 1e2043a

Browse files
committed
add spacing to license text
1 parent 440a4f9 commit 1e2043a

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

app/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
apply plugin: 'com.android.application'
22

33
android {
4+
signingConfigs {
5+
config {
6+
}
7+
}
48
compileSdkVersion 25
59
buildToolsVersion "25.0.1"
610
defaultConfig {
@@ -20,7 +24,6 @@ android {
2024
}
2125
compileOptions {
2226
}
23-
2427
applicationVariants.all { variant ->
2528
variant.outputs.each { output ->
2629
output.outputFile = new File(

app/src/main/java/com/ae/apps/tripmeter/activities/AboutActivity.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ of this software and associated documentation files (the "Software"), to deal
2323
*/
2424
package com.ae.apps.tripmeter.activities;
2525

26+
import android.app.AlertDialog;
2627
import android.content.Context;
2728
import android.content.DialogInterface;
2829
import android.content.Intent;
@@ -62,13 +63,14 @@ public void onClick(View view) {
6263
}
6364
});
6465

66+
final Context context = this;
6567
// Show the License
6668
Button viewLicenseBtn = (Button) findViewById(R.id.viewLicense);
6769
viewLicenseBtn.setOnClickListener(new View.OnClickListener(){
6870
@Override
6971
public void onClick(View view) {
7072
// Will use from ae-apps-lib in future
71-
android.support.v7.app.AlertDialog.Builder builder = new android.support.v7.app.AlertDialog.Builder(getBaseContext())
73+
AlertDialog.Builder builder = new AlertDialog.Builder(context)
7274
.setCancelable(true)
7375
.setTitle(R.string.menu_license)
7476
.setMessage(R.string.str_license)

app/src/main/res/values/license.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<string name="str_license">MIT License
4-
5-
Copyright (c) 2016 Midhun Harikumar
6-
3+
<string name="str_license">MIT License\n\n
74
Permission is hereby granted, free of charge, to any person obtaining a copy
85
of this software and associated documentation files (the "Software"), to deal
96
in the Software without restriction, including without limitation the rights
107
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
118
copies of the Software, and to permit persons to whom the Software is
12-
furnished to do so, subject to the following conditions:
9+
furnished to do so, subject to the following conditions:\n\n
1310

1411
The above copyright notice and this permission notice shall be included in all
15-
copies or substantial portions of the Software.
12+
copies or substantial portions of the Software.\n\n
1613

1714
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1815
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

0 commit comments

Comments
 (0)