Skip to content
This repository has been archived by the owner on Feb 11, 2025. It is now read-only.

Commit

Permalink
Fix toast message
Browse files Browse the repository at this point in the history
  • Loading branch information
s1204IT committed Aug 21, 2023
1 parent 9d11ef4 commit b3034cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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 'me.s1204.galaxycamsnd'
minSdk 28
targetSdk 22
versionCode 10
versionName "1.3.2"
versionCode 11
versionName "1.3.3"
}

signingConfigs {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void onCreate(Bundle savedInstanceState) {
Settings.System.putInt(getContentResolver(), "csc_pref_camera_forced_shuttersound_key", 0);
startActivity((new Intent()).setClassName("com.sec.android.app.camera", "com.sec.android.app.camera.Camera"));
} else {
Toast.makeText(this, "@string/write", Toast.LENGTH_LONG).show();
Toast.makeText(this, R.string.write, Toast.LENGTH_LONG).show();
startActivity(new Intent(Settings.ACTION_MANAGE_WRITE_SETTINGS, Uri.parse("package:" + getPackageName())).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
}
}
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/me/s1204/galaxycamsnd/DisableActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ public void onCreate(Bundle savedInstanceState) {
finishAndRemoveTask();
if (Settings.System.canWrite(this)) {
Settings.System.putInt(getContentResolver(), "csc_pref_camera_forced_shuttersound_key", 1);
Toast.makeText(this, "@string/enabled", Toast.LENGTH_LONG).show();
Toast.makeText(this, R.string.enabled, Toast.LENGTH_LONG).show();
} else {
Toast.makeText(this, "@string/write", Toast.LENGTH_LONG).show();
Toast.makeText(this, R.string.write, Toast.LENGTH_LONG).show();
startActivity(new Intent(Settings.ACTION_MANAGE_WRITE_SETTINGS, Uri.parse("package:" + getPackageName())).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
}
}
Expand Down

0 comments on commit b3034cb

Please sign in to comment.