fedilab-Android-App/app/src/playstore/java/app/fedilab/android/activities/MainActivity.java

49 lines
1.5 KiB
Java
Raw Normal View History

2017-05-05 16:36:04 +02:00
/* Copyright 2017 Thomas Schneider
*
2019-05-18 11:10:30 +02:00
* This file is a part of Fedilab
2017-05-05 16:36:04 +02:00
*
* This program is free software; you can redistribute it and/or modify it under the terms of the
* GNU General Public License as published by the Free Software Foundation; either version 3 of the
* License, or (at your option) any later version.
*
2019-05-18 11:10:30 +02:00
* Fedilab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
2017-05-05 16:36:04 +02:00
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details.
*
2019-05-18 11:10:30 +02:00
* You should have received a copy of the GNU General Public License along with Fedilab; if not,
2017-05-05 16:36:04 +02:00
* see <http://www.gnu.org/licenses>. */
2019-05-18 11:10:30 +02:00
package app.fedilab.android.activities;
2017-05-05 16:36:04 +02:00
2019-10-22 17:05:19 +02:00
2020-07-18 18:20:49 +02:00
import android.content.Intent;
2017-12-09 18:16:20 +01:00
import com.kobakei.ratethisapp.RateThisApp;
2018-09-16 15:05:33 +02:00
2017-12-09 18:16:20 +01:00
public class MainActivity extends BaseMainActivity {
2017-05-20 19:40:46 +02:00
@Override
2017-12-09 18:16:20 +01:00
protected void rateThisApp() {
RateThisApp.onCreate(this);
2018-11-11 12:09:58 +01:00
RateThisApp.Config config = new RateThisApp.Config(3, 10);
RateThisApp.init(config);
2019-10-22 17:05:19 +02:00
RateThisApp.showRateDialogIfNeeded(this);
2017-05-20 19:40:46 +02:00
}
2017-12-09 18:16:20 +01:00
2020-07-18 18:20:49 +02:00
@Override
protected void launchOwnerStatusesActivity() {
Intent myIntent = new Intent(MainActivity.this, OwnerStatusActivity.class);
startActivity(myIntent);
}
@Override
protected void launchOwnerNotificationsActivity() {
Intent myIntent = new Intent(MainActivity.this, OwnerNotificationActivity.class);
startActivity(myIntent);
}
2017-12-09 18:16:20 +01:00
}