Skip to content

Commit

Permalink
update language - Vietnamese for bubble notification
Browse files Browse the repository at this point in the history
  • Loading branch information
tienthanh214 committed Jan 24, 2022
1 parent 8448792 commit 4beb99b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private void notifyUser(Context context) {
.build();
builder.setBubbleMetadata(bubbleData);
builder.setContentTitle("Widget");
builder.setContentText("Click me to fast note a spending");
builder.setContentText(context.getString(R.string.bubble_notif));
}

// TODO set what happen when press notification
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
try {
// Google Sign In was successful, authenticate with Firebase
GoogleSignInAccount account = task.getResult(ApiException.class);
Toast.makeText(LoginActivity.this, "firebaseAuthWithGoogle:" + account.getId(),
Toast.LENGTH_SHORT).show();
// Toast.makeText(LoginActivity.this, "firebaseAuthWithGoogle:" + account.getId(),
// Toast.LENGTH_SHORT).show();
firebaseAuthWithGoogle(account.getIdToken());
} catch (ApiException e) {
// Google Sign In failed, update UI appropriately
Expand Down Expand Up @@ -125,8 +125,8 @@ public void onComplete(@NonNull Task<AuthResult> task) {

private void onLoginComplete(FirebaseUser user, boolean isFirstLogin) {
if (user == null) {
Toast.makeText(LoginActivity.this, "No user",
Toast.LENGTH_SHORT).show();
// Toast.makeText(LoginActivity.this, "No user",
// Toast.LENGTH_SHORT).show();
} else {
Intent intent = new Intent(LoginActivity.this, MainActivity.class);
if (isFirstLogin) intent.putExtra(LOGIN_TYPE, FIRST_TIME_LOGIN);
Expand Down
1 change: 1 addition & 0 deletions src/app/src/main/res/values-ja-rJP/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@
<string name="sync_data">Sync data</string>
<string name="reminder_notification">Reminder notification</string>
<string name="select_time">Select time</string>
<string name="bubble_notif">Click me to fast note a spending</string>
</resources>
1 change: 1 addition & 0 deletions src/app/src/main/res/values-vi-rVN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,5 @@
<string name="sync_data">Đồng bộ dữ liệu</string>
<string name="reminder_notification">Nhắc nhở ghi chú</string>
<string name="select_time">Chọn thời điểm</string>
<string name="bubble_notif">Nhấn vào bong bóng để ghi chú chi tiêu nhanh chóng</string>
</resources>
1 change: 1 addition & 0 deletions src/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,5 @@
<string name="sync_data">Sync data</string>
<string name="reminder_notification">Reminder notification</string>
<string name="select_time">Select time</string>
<string name="bubble_notif">Click me to fast note a spending</string>
</resources>

0 comments on commit 4beb99b

Please sign in to comment.