Skip to content

Commit

Permalink
v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CYB3R-G0D committed May 27, 2022
1 parent f64341e commit 2e86d5f
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 32 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "com.cyb3rg0d.canvass"
minSdkVersion 16
targetSdkVersion 32
versionCode 1
versionName "1.0.0"
versionCode 10
versionName "1.5.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
5 changes: 0 additions & 5 deletions app/src/main/java/com/cyb3rg0d/canvass/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
Intent intent = new Intent(MainActivity.this,about.class);
startActivity(intent);
return true;
case R.id.report:
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse("https://github.com/CYB3R-G0D/Canvass-app/issues"));
startActivity(i);
return true;
default:
return super.onOptionsItemSelected(item);
}
Expand Down
26 changes: 24 additions & 2 deletions app/src/main/java/com/cyb3rg0d/canvass/about.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,27 @@

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.text.method.LinkMovementMethod;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;

public class about extends AppCompatActivity {

TextView versionTxt,moreApps;
String items[] = new String[] {"License","Privacy Policy","Report","More apps"};
String[] urls = {"https://github.com/CYB3R-G0D/Canvass-app/blob/main/LICENSE",
"https://github.com/CYB3R-G0D/PRIVACY.md#privacy-policy",
"https://github.com/CYB3R-G0D/Canvass-app/issues","https://github.com/CYB3R-G0D"};


@Override
protected void onCreate(Bundle savedInstanceState) {
Expand All @@ -21,11 +33,21 @@ protected void onCreate(Bundle savedInstanceState) {
new ColorDrawable(Color.parseColor("#3700B3")));

versionTxt = findViewById(R.id.versionName);
moreApps = findViewById(R.id.moreApps);

String versionName = BuildConfig.VERSION_NAME;
versionTxt.setText(versionName);

moreApps.setMovementMethod(LinkMovementMethod.getInstance());
ListView listView = (ListView) findViewById(R.id.listView);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,items);
listView.setAdapter(adapter);

listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
String clickedItem=(String) listView.getItemAtPosition(i);
Intent openLinkIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(urls[i]));
startActivity(openLinkIntent);
}
});
}
}
18 changes: 7 additions & 11 deletions app/src/main/res/layout/activity_about2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,14 @@
android:gravity="center"
android:layout_centerHorizontal="true"/>

<TextView
android:id="@+id/moreApps"
android:layout_width="wrap_content"
<ListView
android:id="@+id/listView"
android:layout_marginTop="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/moreApps"
android:layout_marginTop="20dp"
android:layout_below="@id/about2"
android:gravity="center"
android:layout_centerHorizontal="true"
android:textSize="24sp"
android:textColorLink="@color/purple_700"
android:textStyle="bold"/>
android:layout_alignParentLeft="true"
android:layout_alignParentTop="false"
android:layout_below="@id/about2"/>
</RelativeLayout>

</RelativeLayout>
6 changes: 2 additions & 4 deletions app/src/main/res/menu/app_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,19 @@
xmlns:tools="http://schemas.android.com/tools">

<item android:id="@+id/background_change"
android:title="Canvas color"
android:title="Background color"
android:icon="@drawable/ic_baseline_colorize"
app:showAsAction="ifRoom">
</item>

<item android:id="@+id/moreMenu"
android:orderInCategory="2"
android:title="Info"
android:title="More info"
android:icon="@drawable/ic_baseline_more_vert"
app:showAsAction="ifRoom">
<menu>
<item android:id="@+id/about"
android:title="About"/>
<item android:id="@+id/report"
android:title="Report"/>
</menu>
</item>

Expand Down
2 changes: 2 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Added canvas background color change
- Fixed about action bar color and other minor bugs
6 changes: 4 additions & 2 deletions fastlane/metadata/android/en-US/full_description.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
Draw and take notes anywhere on your device.
Export your drawing as PNG and share with anyone.
Draw, illustrate, or scribble the choice is up to you.
You can write notes and add doodle to it. Also share them with others.
- Use various colors to express your creativity.
- Save them as PNG
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
11 changes: 5 additions & 6 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Wed May 11 11:52:29 IST 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 2e86d5f

Please sign in to comment.