Simplify log notification messages

Nobody actually understood where the "Files Dir" path was located and this led to more confusion than useful information. It also prevents the message from being overlapped.

Remove unused / ignored Snackbar parameters
This commit is contained in:
TwistedUmbrella 2018-03-31 17:04:31 -04:00
parent 60b501b747
commit 919c6d6288
10 changed files with 6 additions and 29 deletions

View File

@ -240,7 +240,6 @@ public class AboutFragment extends Fragment {
ConstraintLayout layout = (ConstraintLayout) getActivity().findViewById(R.id.mainui_layout);
Snackbar snackbar = Snackbar.make(layout, message, duration);
View snackbarLayout = snackbar.getView();
snackbarLayout.setMinimumWidth(ConstraintLayout.LayoutParams.MATCH_PARENT);
TextView textView = (TextView) snackbarLayout.findViewById(
android.support.design.R.id.snackbar_text);
textView.setGravity(Gravity.CENTER_VERTICAL);

View File

@ -574,7 +574,6 @@ public class FileBrowser extends Fragment {
ConstraintLayout layout = (ConstraintLayout) getActivity().findViewById(R.id.mainui_layout);
Snackbar snackbar = Snackbar.make(layout, message, duration);
View snackbarLayout = snackbar.getView();
snackbarLayout.setMinimumWidth(ConstraintLayout.LayoutParams.MATCH_PARENT);
TextView textView = (TextView) snackbarLayout.findViewById(
android.support.design.R.id.snackbar_text);
textView.setGravity(Gravity.CENTER_VERTICAL);

View File

@ -615,7 +615,6 @@ public class MainActivity extends AppCompatActivity implements
ConstraintLayout layout = (ConstraintLayout) findViewById(R.id.mainui_layout);
Snackbar snackbar = Snackbar.make(layout, message, duration);
View snackbarLayout = snackbar.getView();
snackbarLayout.setMinimumWidth(ConstraintLayout.LayoutParams.MATCH_PARENT);
TextView textView = (TextView) snackbarLayout.findViewById(
android.support.design.R.id.snackbar_text);
textView.setGravity(Gravity.CENTER_VERTICAL);

View File

@ -659,7 +659,6 @@ public class OptionsFragment extends Fragment {
ConstraintLayout layout = (ConstraintLayout) getActivity().findViewById(R.id.mainui_layout);
Snackbar snackbar = Snackbar.make(layout, message, duration);
View snackbarLayout = snackbar.getView();
snackbarLayout.setMinimumWidth(ConstraintLayout.LayoutParams.MATCH_PARENT);
TextView textView = (TextView) snackbarLayout.findViewById(
android.support.design.R.id.snackbar_text);
textView.setGravity(Gravity.CENTER_VERTICAL);

View File

@ -247,13 +247,7 @@ public class GenerateLogs extends AsyncTask<String, Integer, String> {
@Override
protected void onPostExecute(final String response) {
if (response != null && !response.equals(null)) {
// Toast.makeText(mContext, mContext.getString(R.string.log_saved),
// Toast.LENGTH_SHORT).show();
// Toast.makeText(mContext, mContext.getString(R.string.platform),
// Toast.LENGTH_SHORT).show();
showToastMessage(mContext.getString(R.string.log_saved), Snackbar.LENGTH_SHORT);
showToastMessage(mContext.getString(R.string.platform), Snackbar.LENGTH_SHORT);
showToastMessage(mContext.getString(R.string.log_saved), Snackbar.LENGTH_LONG);
UploadLogs mUploadLogs = new UploadLogs(mContext, currentTime);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
mUploadLogs.executeOnExecutor(

View File

@ -115,10 +115,7 @@
<string name="downloadWarning">ACHTUNG: Sie sind im Begriff Ihre VMUs von Ihrer Dropbox herunterzuladen. Beachten Sie bitte, dass dies ihren letzten Download ÜBERSCHREIBEN wird! Eine Sicherungkopie wird im VmuBackups angelegt.</string>
<string name="uploadVMU">VMU hochladen</string>
<string name="downloadVMU">VMU herunterladen</string>
<string name="platform">Kopiere Logcat-Inhalte in die Zwischenablage\nBitte in den Fehlerbericht einfügen.</string>
<string name="log_saved">Logdatei ins \"Datenverzeichnis\" gespeichert.</string>
<!-- Onscreen Menu -->
<string name="popup_button_back">Zurück</string>
<string name="popup_button_disk">Disk wechseln</string>

View File

@ -79,10 +79,7 @@
<string name="downloadWarning">주의:VMUs파일을 드롭박스에서 다운받아서 덮어쓰게 됩니다. 실행전에 VMUs파일을 다른곳에 백업하세요! </string>
<string name="uploadVMU">VMU 올리기</string>
<string name="downloadVMU">VMU 내려받기</string>
<string name="platform">Copying logcat content to clipboard\nPlease paste in the issue report</string>
<string name="log_saved">Log saved to \"Files Dir\" path</string>
<!-- Onscreen Menu -->
<string name="popup_button_back">뒤로</string>
<string name="popup_button_disk">Disk Swap</string>

View File

@ -117,10 +117,7 @@
criado na pasta VmuBackups!</string>
<string name="uploadVMU">Upload VMU</string>
<string name="downloadVMU">Download VMU</string>
<string name="platform">Copiar conteúdo do logcat para o clipboard\nPor favor, cole no relatório de emissão</string>
<string name="log_saved">Log salvo em \"Files Dir\" path</string>
<!-- Onscreen Menu -->
<string name="popup_button_back">Voltar</string>
<string name="popup_button_disk">Trocar Disco</string>

View File

@ -124,10 +124,7 @@
в папке VmuBackups</string>
<string name="uploadVMU">Загрузить VMU</string>
<string name="downloadVMU">Скачать VMU</string>
<string name="platform">Содержимое logcat скопировано в буфер обмена\nПожалуйста, вставьте лог в отчёт об ошибке</string>
<string name="log_saved">Лог сохранён в \"Files Dir\"</string>
<!-- Onscreen Menu -->
<string name="popup_button_back">Назад</string>
<string name="popup_button_disk">След. диск</string>

View File

@ -128,8 +128,7 @@
<string name="uploadVMU">Upload VMU</string>
<string name="downloadVMU">Download VMU</string>
<string name="platform">Copying logcat content to clipboard\nPlease paste in the issue report</string>
<string name="log_saved">Log saved to \"Files Dir\" path</string>
<string name="log_saved">Logcat saved and copied to clipboard\nPlease paste inside the Github issue</string>
<!-- Onscreen Menu -->
<string name="popup_button_back">Back</string>