Skip to content

Commit

Permalink
Updated Info
Browse files Browse the repository at this point in the history
  • Loading branch information
Parveshdhull committed Nov 27, 2020
1 parent ce072c5 commit 80ae3dc
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {
minSdkVersion 17
targetSdkVersion 29
versionCode 5
versionName "1.4"
versionName "1.5"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
2 changes: 1 addition & 1 deletion app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"filters": [],
"properties": [],
"versionCode": 5,
"versionName": "1.4",
"versionName": "1.5",
"enabled": true,
"outputFile": "app-release.apk"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
import androidx.browser.customtabs.CustomTabsIntent;
import androidx.core.content.ContextCompat;

import android.app.Activity;
import android.app.ActivityManager;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
Expand All @@ -27,6 +29,7 @@
import android.os.Vibrator;
import android.provider.Settings;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
Expand All @@ -42,6 +45,8 @@
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;

import java.util.concurrent.Callable;

import espero.jiofibatterynotifier.Classes.SharedPrefMain;
import espero.jiofibatterynotifier.Classes.StartUpBootReceiver;
import espero.jiofibatterynotifier.R;
Expand Down Expand Up @@ -401,4 +406,28 @@ protected void onStop() {

super.onStop();
}

public void about(View view2){

try {
if(!isFinishing()) {
View view = (LayoutInflater.from(this)).inflate(R.layout.custom_message_contact, null);

AlertDialog.Builder builder = new AlertDialog.Builder(this, R.style.DialogBoxTheme);
builder.setView(view);
builder.setCancelable(false);
builder.setPositiveButton("Ok",null);

Dialog dialog = builder.create();
dialog.setCancelable(false);
dialog.setCanceledOnTouchOutside(false);
dialog.show();

}
} catch (Exception e) {
e.printStackTrace();
}


}
}
14 changes: 14 additions & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,20 @@

</LinearLayout>

<Button
android:id="@+id/about"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="15dp"
android:background="@drawable/button_boundary"
android:fontFamily="sans-serif-smallcaps"
android:text="About"
android:onClick="about"
android:textAllCaps="false"
android:textColor="@color/colorPrimary"
android:textSize="15dp" />



</LinearLayout>
Expand Down
69 changes: 69 additions & 0 deletions app/src/main/res/layout/custom_message_contact.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:backgroundTint="#fff"
android:filterTouchesWhenObscured="false"
android:orientation="vertical">

<TextView
android:id="@+id/customMessageDialogTextTitle"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="10dp"
android:fontFamily="sans-serif"
android:text="Android JioFi Battery Notifier 1.5"
android:textAlignment="center"
android:textColor="#000"
android:textSize="18sp" />


<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:autoLink="all"
android:fontFamily="sans-serif-light"
android:text="Developer - Parvesh Monu"
android:textAlignment="center"
android:textColor="#000"
android:textSize="18sp" />


<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autoLink="all"
android:layout_marginTop="10dp"
android:fontFamily="sans-serif-light"
android:text="Follow - https://twitter.com/parveshmonu"
android:textAlignment="center"
android:textColor="#000"
android:textSize="15sp" />


<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autoLink="all"
android:layout_marginTop="10dp"
android:fontFamily="sans-serif-light"
android:text="Github - https://github.com/Parveshdhull"
android:textAlignment="center"
android:textColor="#000"
android:textSize="15sp" />

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autoLink="all"
android:layout_marginTop="10dp"
android:fontFamily="sans-serif-light"
android:text="YouTube - https://youtube.com/right2trick"
android:textAlignment="center"
android:textColor="#000"
android:textSize="15sp" />

</LinearLayout>
2 changes: 2 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@
<item name="windowNoTitle">true</item>
</style>

<style name="DialogBoxTheme" parent="Theme.AppCompat.Light.Dialog.Alert">
</style>
</resources>

0 comments on commit 80ae3dc

Please sign in to comment.