diff --git a/.idea/misc.xml b/.idea/misc.xml index b9be38f..64a67ca 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -39,7 +39,7 @@ - + diff --git a/app/.classpath b/app/.classpath new file mode 100644 index 0000000..eb19361 --- /dev/null +++ b/app/.classpath @@ -0,0 +1,6 @@ + + + + + + diff --git a/app/.project b/app/.project new file mode 100644 index 0000000..ac485d7 --- /dev/null +++ b/app/.project @@ -0,0 +1,23 @@ + + + app + Project app created by Buildship. + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.buildship.core.gradleprojectbuilder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.buildship.core.gradleprojectnature + + diff --git a/app/.settings/org.eclipse.buildship.core.prefs b/app/.settings/org.eclipse.buildship.core.prefs new file mode 100644 index 0000000..b1886ad --- /dev/null +++ b/app/.settings/org.eclipse.buildship.core.prefs @@ -0,0 +1,2 @@ +connection.project.dir=.. +eclipse.preferences.version=1 diff --git a/app/build.gradle b/app/build.gradle index e1b0025..3430423 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -6,8 +6,8 @@ android { applicationId "ir.geraked.nahj" minSdkVersion 17 targetSdkVersion 26 - versionCode 2 - versionName "1.0.1" + versionCode 3 + versionName "1.0.2" // testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true } diff --git a/app/release/Nahj-1.0.2.apk b/app/release/Nahj-1.0.2.apk new file mode 100644 index 0000000..40f58da Binary files /dev/null and b/app/release/Nahj-1.0.2.apk differ diff --git a/app/release/output.json b/app/release/output.json index 773d283..bf1173f 100644 --- a/app/release/output.json +++ b/app/release/output.json @@ -1 +1 @@ -[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":2,"versionName":"1.0.1","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}] \ No newline at end of file +[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":3,"versionName":"1.0.2","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}] \ No newline at end of file diff --git a/app/src/main/java/ir/geraked/nahj/MainActivity.java b/app/src/main/java/ir/geraked/nahj/MainActivity.java index 60fce62..d4ebd39 100644 --- a/app/src/main/java/ir/geraked/nahj/MainActivity.java +++ b/app/src/main/java/ir/geraked/nahj/MainActivity.java @@ -200,16 +200,17 @@ public boolean onNavigationItemSelected(MenuItem item) { Dialog dialog = new Dialog(this); dialog.setContentView(R.layout.dialog_about); dialog.show(); - } else if (id == R.id.nav_rate) { - try { - Intent intent = new Intent(Intent.ACTION_EDIT); - intent.setData(Uri.parse("bazaar://details?id=" + "ir.geraked.nahj")); - intent.setPackage("com.farsitel.bazaar"); - startActivity(intent); - } catch (Exception e) { - Toast.makeText(this, "خطا", Toast.LENGTH_SHORT).show(); - } } +// else if (id == R.id.nav_rate) { +// try { +// Intent intent = new Intent(Intent.ACTION_EDIT); +// intent.setData(Uri.parse("bazaar://details?id=" + "ir.geraked.nahj")); +// intent.setPackage("com.farsitel.bazaar"); +// startActivity(intent); +// } catch (Exception e) { +// Toast.makeText(this, "خطا", Toast.LENGTH_SHORT).show(); +// } +// } DrawerLayout drawer = findViewById(R.id.drawer_layout); drawer.closeDrawer(GravityCompat.START); diff --git a/app/src/main/res/layout/dialog_about.xml b/app/src/main/res/layout/dialog_about.xml index 3860e5d..7d20b51 100644 --- a/app/src/main/res/layout/dialog_about.xml +++ b/app/src/main/res/layout/dialog_about.xml @@ -3,6 +3,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="256dp" android:layout_height="128dp" + android:gravity="center" android:orientation="vertical"> @@ -10,6 +11,7 @@ android:id="@+id/imageView2" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_gravity="center" android:contentDescription="@string/app_name" app:srcCompat="@drawable/geraked_logo" /> \ No newline at end of file diff --git a/app/src/main/res/menu/activity_main_drawer.xml b/app/src/main/res/menu/activity_main_drawer.xml index 981a509..6543428 100644 --- a/app/src/main/res/menu/activity_main_drawer.xml +++ b/app/src/main/res/menu/activity_main_drawer.xml @@ -16,10 +16,10 @@ android:id="@+id/nav_about" android:icon="@drawable/ic_about" android:title="@string/about" /> - + + + +