add error message for version check
This commit is contained in:
parent
4d1dfbf325
commit
4b8157fdb2
2 changed files with 4 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ import android.view.MenuItem;
|
|||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.EditText;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.widget.Toolbar;
|
||||
|
|
@ -135,6 +136,8 @@ public class LoginActivity extends AbsBaseActivity implements View.OnClickListen
|
|||
Intent intent = new Intent(context, MainActivity.class);
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||
context.startActivity(intent);
|
||||
} else {
|
||||
Toast.makeText(context, context.getResources().getString(R.string.error_version), Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
<string name="unplayable_file">Couldn\u2019t play this song.</string>
|
||||
<string name="audio_focus_denied">Audio focus denied.</string>
|
||||
<string name="error_share_file">There was an error sharing the file.</string>
|
||||
<string name="error_version">Please update your server to the latest version.</string>
|
||||
|
||||
<string name="action_share">Share</string>
|
||||
<string name="action_settings">"Settings"</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue