Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TEST FIRST] New icon; dialog asking for feedback. #560

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions AndroidManifest.xml
Expand Up @@ -28,9 +28,9 @@
android:isGame="true"
android:hardwareAccelerated="true"
android:exported="true"
android:icon="@drawable/icon"
android:icon="@mipmap/ic_launcher_ouya"
android:label="@string/app_name"
android:logo="@drawable/hireslogo"
android:logo="@mipmap/ic_launcher_ouya"
android:banner="@drawable/banner"
android:theme="@style/appTheme"
android:supportsRtl="true"
Expand Down
Binary file added res/drawable-nodpi/ic_playstore_ouya.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/mipmap-hdpi/ic_launcher_ouya.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/mipmap-mdpi/ic_launcher_ouya.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/mipmap-xhdpi/ic_launcher_ouya.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/mipmap-xxhdpi/ic_launcher_ouya.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/mipmap-xxxhdpi/ic_launcher_ouya.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions src/paulscode/android/mupen64plusae/SplashActivity.java
Expand Up @@ -54,6 +54,7 @@
import android.support.v7.app.AppCompatActivity;
import android.support.v7.preference.PreferenceManager;
import android.text.Html;
import android.widget.LinearLayout;
import android.view.WindowManager.LayoutParams;
import android.widget.ImageView;
import android.widget.TextView;
Expand Down Expand Up @@ -152,6 +153,39 @@ public void onCreate( Bundle savedInstanceState )
PrefUtil.validateListPreference( res, mPrefs, TOUCHSCREEN_AUTO_HOLD, R.string.touchscreenAutoHold_default, R.array.touchscreenAutoHold_values );
PrefUtil.validateListPreference( res, mPrefs, NAVIGATION_MODE, R.string.navigationMode_default, R.array.navigationMode_values );

if ( !mPrefs.getBoolean( "seen_survey", false )) {
LinearLayout dialogLayout = new LinearLayout( this );
dialogLayout.setLayoutParams( new LinearLayout.LayoutParams( LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT ));
dialogLayout.setOrientation( LinearLayout.VERTICAL );
TextView message = new TextView( this );
message.setLayoutParams( new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT ));
message.setText( "We have recently changed our icon and we want your feedback!\n\n" +
"Please take a few moments to fill out this feedback form so we can make improvements. " +
"You will need a Google account to fill out this form. This is so we don't have duplicates." );
message.setPadding( 16, 16, 16, 16 );
dialogLayout.addView( message );
ImageView icon = new ImageView( this );
icon.setLayoutParams( new LinearLayout.LayoutParams( LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT ));
icon.setAdjustViewBounds( true );
icon.setPadding( 16, 16, 16, 16 );
icon.setImageResource( R.drawable.ic_playstore_ouya );
dialogLayout.addView( icon );
AlertDialog dialog = new AlertDialog.Builder()
.setTitle( "We want your feedback!" )
.setView( iconLayout )
.setPositiveButton( getString( android.R.string.ok ), new DialogInterface.OnClickListener() {
@Override
public void onClick( DialogInterface dialog, int which ) {
Intent i = new Intent( Intent.ACTION_VIEW,
Uri.parse( "https://docs.google.com/forms/d/1F2stkHvb0Rx5vfmaz50OtTfT73XjHK2GEXZj9a_x-yw/viewform" ));
SplashActivity.this.startActivity( i );
}
})
.setNegativeButton( getString( android.R.string.cancel ), null )
.create();
mPrefs.edit().putBoolean( "seen_survey", true ).apply();
dialog.show();
}
//Check for invalid data path
String dataPathString = mPrefs.getString( DATA_PATH, null );

Expand Down