Skip to content

Commit

Permalink
disabled cafebazaar rating
Browse files Browse the repository at this point in the history
  • Loading branch information
geraked committed Apr 15, 2020
1 parent be6d6c4 commit bbb2e1d
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions app/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>
23 changes: 23 additions & 0 deletions app/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>app</name>
<comment>Project app created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions app/.settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
connection.project.dir=..
eclipse.preferences.version=1
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Binary file added app/release/Nahj-1.0.2.apk
Binary file not shown.
2 changes: 1 addition & 1 deletion app/release/output.json
Original file line number Diff line number Diff line change
@@ -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":{}}]
[{"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":{}}]
19 changes: 10 additions & 9 deletions app/src/main/java/ir/geraked/nahj/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/layout/dialog_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="256dp"
android:layout_height="128dp"
android:gravity="center"
android:orientation="vertical">


<ImageView
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" />
</LinearLayout>
8 changes: 4 additions & 4 deletions app/src/main/res/menu/activity_main_drawer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
android:id="@+id/nav_about"
android:icon="@drawable/ic_about"
android:title="@string/about" />
<item
android:id="@+id/nav_rate"
android:icon="@drawable/ic_rate"
android:title="@string/app_rate" />
<!-- <item-->
<!-- android:id="@+id/nav_rate"-->
<!-- android:icon="@drawable/ic_rate"-->
<!-- android:title="@string/app_rate" />-->
</group>

<!--<item android:title="Communicate">
Expand Down

0 comments on commit bbb2e1d

Please sign in to comment.